Recent Posts


Allowed Custom Processing Step Type (AllowedCustomProcessingStepType) property of Custom API in Dynamics 365 / Microsoft Dataverse

Continuing our previous posts, let us check the AllowedCustomProcessingStepType attribute in this blog post https://nishantrana.me/2021/01/13/use-custom-api-to-create-custom-messages-in-dynamics-365/ https://nishantrana.me/2021/01/14/execute-privilege-name-executeprivilegename-property-of-custom-api-in-dynamics-365-microsoft-dataverse/ Allowed Custom Processing Step Type attribute of custom API allows us to control whether other plugins can be registered or not against the custom message 0 – None – No custom processing steps are allowed. 1 – Async Only– … Continue reading “Allowed Custom Processing Step Type (AllowedCustomProcessingStepType) property of Custom API in Dynamics 365 / Microsoft Dataverse”

Unable to retrieve attribute=businessunitid for entityLogicalName=systemuser exception while creating Application User in Dynamics 365

Recently while trying to add a new application user we got the below error message More on Application User – https://nishantrana.me/2020/12/24/application-user-form-missing-in-dynamics-365/ https://nishantrana.me/2020/12/23/d365-the-user-is-not-a-member-of-the-organization-error-while-connecting-to-ce/ Adding the missing Business Unit field in the form fixed it. Hope it helps..

Manage Dynamics 365 Web API with Azure API Management

Azure API Management is an Azure service to create consistent API gateways for secure, scalable access for back-end applications and services. Azure API Management consists of 3 main components API Gateway Azure Portal for administration Developer Portal for API documentation Each API inside Azure API Management contains a reference to the back-end service that implements … Continue reading “Manage Dynamics 365 Web API with Azure API Management”

Execute Privilege Name (ExecutePrivilegeName) property of Custom API in Dynamics 365 / Microsoft Dataverse

In the previous post, we created a simple custom API  https://nishantrana.me/2021/01/13/use-custom-api-to-create-custom-messages-in-dynamics-365/ Let us look at its different properties starting with ExecutePrivilegeName Execute Privilege Name attribute of custom API allows us to specify the name of the privilege that allows execution of the custom API. Let us update the custom API and specify the privilege name. … Continue reading “Execute Privilege Name (ExecutePrivilegeName) property of Custom API in Dynamics 365 / Microsoft Dataverse”

Improved search experience in Dynamics 365 / PowerApps

To enable the new search experience, we need to turn on the relevance search on that environment. Login to the admin portal and environments section https://admin.powerplatform.microsoft.com/environments Navigate to Settings -> Features and turn on the Relevance Search This places the search bar in the header, making it easy to access while navigating across different pages. … Continue reading “Improved search experience in Dynamics 365 / PowerApps”

Sample Code – Dynamics 365 Web API / Organization Service

Use CrmServiceClient to execute web request against Dynamics 365 Web API – OAuth Consume Dynamics 365 Web API using MSAL.NET using ConfidentialClientApplicationBuilder class the connection string parameters Consume Dynamics 365 Web API – OAuth – Authorization Code Grant Type Consume Dynamics 365 Web API – OAuth – Implicit Grant Type Consume Dynamics 365 Web API … Continue reading “Sample Code – Dynamics 365 Web API / Organization Service”

Application User Form missing in Dynamics 365

Recently while trying to create a new application user, we could not find the application user form for the system user entity in the web application. Within the maker portal, we can see the form available and enabled for everyone. It was inside our classic administration settings; we saw it listed as Inactive Forms Activating … Continue reading “Application User Form missing in Dynamics 365”

Historical Data Migration – Created On and Modified On in Dynamics 365

Very insightful article by Debajit ! Just to summarize – If we are using SDK method from external application to set values for created on, modified on – we can use overriddencreatedon for created on. Modified on will be ignored. Setting values in Pre-Create Plugin – values specified for both created on and modified on … Continue reading “Historical Data Migration – Created On and Modified On in Dynamics 365”

Azure Data Lake Storage Component in KingswaySoft – SSIS

Download and install the SSIS Productivity Pack https://www.kingswaysoft.com/products/ssis-productivity-pack/download/ Drag the Azure Data Lake Storage Source component in the data flow Double click and click on New to specify the connection Provide the connection details and test the connection It supports both Gen 1 and Gen 2 Supports the below Authentication modes Inside the Azure Data … Continue reading “Azure Data Lake Storage Component in KingswaySoft – SSIS”

IP ranges for Dynamics 365

Originally posted on Biplab Singha's blog:
IP whitelisting (Range) for Dynamics 365. In one of our recent project we need to call a web service from Workflow and Action from Dynamics 365 online (9.x) . The web service publisher will allow only request from specific IP ranges due to security principal of the organisation.…

Setup a free trial of Dynamics 365 Marketing

If we already have a Microsoft 365 / Dynamics 365 tenant, we can directly request the trial for Dynamics 365 Marketing from Microsoft 365 Admin Center https://admin.microsoft.com through Purchase services > Dynamics 365 Marketing option. And within Power Platform Admin Center https://admin.powerplatform.microsoft.com/, we can navigate to Dynamics 365 Apps >> Dynamics 365 Marketing Application solution … Continue reading “Setup a free trial of Dynamics 365 Marketing”

Wrestling With Email Address Limitations

Originally posted on That CRM Blog:
Dynamics CRM has been around for a while (about 13 years) and, as is the way with any software, there are a few design features from the old days which linger today. One of those is how email addresses are treated for Accounts, Contacts, and Leads. How Emails Work…

Consume Dynamics 365 Web API using MSAL.NET

Sharing a sample code to consume Dynamics 365 Web API using MSAL.NET Create a console application and add the following NuGet Package Microsoft.Identity.Client More on Microsoft identity platform https://docs.microsoft.com/en-us/azure/active-directory/develop/ We are using ConfidentialClientApplicationBuilder create method. https://docs.microsoft.com/en-gb/azure/active-directory/develop/msal-net-initializing-client-applications The sample code – Result – Reference – https://medium.com/capgemini-microsoft-team/access-tokens-for-dynamics-365-using-microsoft-authentication-library-2b16c9f794b Hope it helps..

Fixed – 401 Unauthorized error while calling Dynamics 365 Web API

We were recently getting the below error while trying to call Dynamics 365 Web API through Postman. “401 Unauthorized” It turned out that we were using the incorrect Token. To generate the correct token, For OAuth 2.0 token endpoint (v1) Version 1 We need to specify resource with Dynamics 365 URL. For OAuth 2.0 token … Continue reading “Fixed – 401 Unauthorized error while calling Dynamics 365 Web API”

Read Secret from Azure Key Vault using Key Vault Rest API through Postman

In the previous posts, we saw how to register an Azure AD app and read the secret from Azure Key Vault using SecretClient and UsernamePasswordCredential class https://nishantrana.me/2020/11/27/read-secret-from-azure-key-vault-using-secretclient-class-console-app-c/ https://nishantrana.me/2020/12/01/read-secret-from-azure-key-vault-using-secretclient-usernamepasswordcredential-c/ In this post, we’d fetch the secret saved in Key Vault through Postman. Register an Azure AD App Copy its client id and client secret Provide the … Continue reading “Read Secret from Azure Key Vault using Key Vault Rest API through Postman”

Check user’s access to a record – upcoming feature in Dynamics 365

Was going through the Model-Driven Apps documentation and found the below article https://docs.microsoft.com/en-us/powerapps/user/access-checker It talks about a Check access button on the command bar of a record which will list down all the rights/access/privileges on that particular record. And also how the user has got those accesses, through security roles directly assigned or through the … Continue reading “Check user’s access to a record – upcoming feature in Dynamics 365”

Power Platform for Admins connector (preview) in Power Automate

The Power Platform for Admins connector (preview) let’s us perform following Actions The connector allows us to access the Business Applications Platform (BAP) API. Below is the example of the Create Environment action, followed by Create CDS Database. Here we are creating a trial environment in Asia region followed by a CDS database in it … Continue reading “Power Platform for Admins connector (preview) in Power Automate”

5000 records limit of Fetch XML Query – List records action of Common Data Service (current environment) connector in Power Automate

Recently in one of our requirements, while trying to fetch contact records using Fetch XML Query https://docs.microsoft.com/en-us/connectors/commondataserviceforapps/#list-records we realized that we can only retrieve / fetch 5000 records. Enabling pagination will also not help here (the Next link also come as null). The alternate solution is to convert the Fetch XML query to OData and … Continue reading “5000 records limit of Fetch XML Query – List records action of Common Data Service (current environment) connector in Power Automate”

Use query acceleration to retrieve data from Azure Data Lake Storage

Few key points about query acceleration – Query acceleration supports ANSI SQL like language, to retrieve only the required subset of the data from the storage account, reducing network latency and compute cost. Query acceleration requests can process only one file, thus joins and group by aggregates aren’t supported. Query acceleration supports both Data Lake … Continue reading “Use query acceleration to retrieve data from Azure Data Lake Storage”

Fixed – AADSTS7000218: The request body must contain the following parameter: ‘client_assertion’ or ‘client_secret

While trying to access Azure resources using UsernamePasswordCredential credential we were getting the below error https://docs.microsoft.com/en-us/dotnet/api/azure.identity.usernamepasswordcredential?view=azure-dotnet Azure.Identity.AuthenticationFailedException: ‘UsernamePasswordCredential authentication failed: A configuration issue is preventing authentication – check the error message from the server for details.You can modify the configuration in the application registration portal. See https://aka.ms/msal-net-invalid-client for details. Original exception: AADSTS7000218: The request body … Continue reading “Fixed – AADSTS7000218: The request body must contain the following parameter: ‘client_assertion’ or ‘client_secret”

Fixed – AADSTS65001: The user or administrator has not consented to use the application with ID

The below error occurs for the application registered with Azure AD (Delegated Permissions), which requires either user or an administrator’s consent for the permissions it needs. “Azure.Identity.AuthenticationFailedException: ‘UsernamePasswordCredential authentication failed: AADSTS65001: The user or administrator has not consented to use the application with ID ‘9ea6c0e6-5ab5-4816-b787-5391cd41fd7b’ named ‘MyKVApp’. Send an interactive authorization request for this user … Continue reading “Fixed – AADSTS65001: The user or administrator has not consented to use the application with ID”

Read Secret from Azure Key Vault using SecretClient (UsernamePasswordCredential)– C#

In the previous post, we used ClientSecretCredential Token Credential to read the secret from the Key Vault. In this post, we’d use UsernamePasswordCredential class instead. Login to Azure Portal – https://portal.azure.com/ Here we have generated a Secret named secret1 inside MyKeyVaultCRM We have also provided Get – Secret permission to the below User account Also, … Continue reading “Read Secret from Azure Key Vault using SecretClient (UsernamePasswordCredential)– C#”

Read Secret from Azure Key Vault using SecretClient class – Console App C#

Azure Key Vault can save 3 different types of information. Keys – Encryption keys (asymmetric – public/private), can be created in Key Vault or imported, stored in software or HSD Secrets – unstructured text, can be created or imported, stored in the software. Certificates – can be created or imported, contains 3 part – cert … Continue reading “Read Secret from Azure Key Vault using SecretClient class – Console App C#”

Creating Better PCF Component – Part 2

Originally posted on Temmy Wahyu Raharjo:
When I was writing this post, I felt the environment that I set up did not enhance my ability to write code. The reason for this is because I use jsdom, which is a mock object for the HTML component. Because it is not a real object of HTML, my focus…

Loading…

Something went wrong. Please refresh the page and/or try again.

Advertisements

Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

One thought on “Recent Posts”

Please share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.