This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-AdminPowerApp -Owner '{guid}' -EnvironmentName '{guid}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-AdminPowerAppOwner -AppName '{guid}' -AppOwner '{guid}' -EnvironmentName '{guid}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install-Module -Name Microsoft.PowerApps.Administration.PowerShell | |
Install-Module -Name Microsoft.PowerApps.PowerShell -AllowClobber |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
/* | |
* INFO : | |
* List<OrganizationRequest> requestList olarak oluşturduğum değişken mevcutta kurguladığımız entegrasyon yapısı için | |
* data kaynağından gelecek olan kayıtları içermektedir. | |
* Örnek kodumuzda sadece Contact create işlemi yapıyoruz, gerçek dünya senaryolarında kayıt güncelleme, silme, ilişkilendirme vb. | |
* işlemleri de aynı şekilde yapabilirsiniz. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int itemPerPackage = 150; //INFO : Her bir istekte pakette bulunmasını istediğimiz Request sayısı | |
int packageCount = 1; | |
if (requestList.Count > itemPerPackage) | |
{ | |
packageCount = requestList.Count / itemPerPackage; | |
if (packageCount % itemPerPackage != 0) | |
{ | |
packageCount++; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isDashboardPage() { | |
let url = window.location; | |
if (url.search.indexOf("pagetype=dashboard") === -1 && window.parent != undefined && window.parent != null) { | |
url = window.parent.location; | |
} | |
return (url.search.indexOf("pagetype=dashboard") > -1); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------------------------------------------------- | |
-- Provide the value for the following parameters | |
DECLARE @prefix nvarchar(32) ='' | |
DECLARE @schema nvarchar(32) ='' | |
DECLARE @entityName nvarchar(32) ='' | |
----------------------------------------------------------------- | |
DECLARE @sql nvarchar(max) = ''; | |
IF @prefix != '' | |
BEGIN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------------------------------------------------- | |
-- Provide the value for the following parameters | |
DECLARE @prefix nvarchar(32) ='' | |
DECLARE @schema nvarchar(32) ='dbo' | |
----------------------------------------------------------------- | |
DECLARE @sql nvarchar(max) = ''; | |
SELECT @sql += 'DROP TABLE ' + QUOTENAME([TABLE_SCHEMA]) + '.' + QUOTENAME([TABLE_NAME]) + ';' | |
FROM [INFORMATION_SCHEMA].[TABLES] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------------------------------------------------------------- # | |
# Provide the value for the following parameters before executing the script | |
# This Powershell script copied from Microsoft official documentation on 2019-05-10 | |
# Please check and validate before use, https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/administering-dynamics-365/mt744592(v=crm.8) | |
$subscriptionId = '[Specifies the Azure subscription to which the Key Vault belongs.]' | |
$keyvaultName = '[Specifies the name of the Key Vault. If the Key Vault does not exist, the script will create one]' | |
$secretName = '[Specifies the name of the secret that is put into the Key Vault. The secret holds the destination database connection string.]' | |
$resourceGroupName = '[Specifies the Resource Group for the Key Vault.]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Update(string entityLogicalName, Guid id, object updateContent) | |
{ | |
string apiBaseUrl = $"{_d365Url}/api/data/v9.1"; | |
string apiFullUrl = $"{apiBaseUrl}/{entityLogicalName}s({id.ToString()})"; | |
using (HttpClient httpClient = new HttpClient()) | |
{ | |
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", _accessToken); | |
httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); |
NewerOlder