WebAPI
Performing updates using alternate key in Dynamics 365 WebAPI and need to make sure it only updates and doesn’t create new record? Check this one out!
Category: Dynamics 365,If-Match,Microsoft CRM,Microsoft Dynamics CRM,PowerApps,upsert,WebAPI Author: Debajit Dutta Date: 3 months ago Comments: 0

For training and consulting, write to us at info@xrmforyou.com If you have used alternate keys in Dynamics 365 and tried to update using a record using WebAPI alternate key, you know the default behavior of how it works.For example, let’s see the sample code below. Here an alternate key is created on “emailaddress1” field of … Continue reading Performing updates using alternate key in Dynamics 365 WebAPI and need to make sure it only updates and doesn’t create new record? Check this one out!
Source: Debajit


The structure of error response from WebAPI in Dynamics 365/ CDS have changed. The innererror property in the JSON response has been removed. Are you aware of it?
Category: CDS,change,Dynamics 365,innererror,JSON response,Microsoft CRM,Microsoft Dynamics CRM,WebAPI Author: Debajit Dutta Date: 3 months ago Comments: 0

And I just faced this an hour back as I was reviewing a piece of code. Can’t paste the actual code but the code was kind of similar to this. Check for the highlighted part where the code check for innererror property. So if your code is referring to this property it is no longer … Continue reading “The structure of error response from WebAPI in Dynamics 365/ CDS have changed. The innererror property in the JSON response has been removed. Are you aware of it?”
Source: Debajit


Connect to Dynamics 365 Web API using OAuth 2.0 – Authorization Code Grant Type
Category: Dynamics 365,Microsoft Dynamics 365,oAuth,OAuth 2.0,Web API,WebAPI Author: Nishant Rana Date: 1 year ago Comments: 0

In the previous post we covered Password and Client Credentials grant type, here we’d be looking at the Authorization Code Grant Type. The Authorization Code Grant Type is for the Confidential Clients i.e. basically for the server side web applications that are written in server side language and source code is not available to the … Continue reading “Connect to Dynamics 365 Web API using OAuth 2.0 – Authorization Code Grant Type”
Source: Nishant Rana


Connect to Dynamics 365 Web API using OAuth 2.0 – Client Credentials
Category: Dynamics 365,Microsoft Dynamics 365,oAuth,OAuth 2.0,Web API,WebAPI Author: Nishant Rana Date: 1 year ago Comments: 0

In the last post we learned about connecting to Dynamics 365 Web API using Resource Owner Password Credential (ROPC), here we’d be covering the Client Credentials grant. Client Credentials grant is designed for the client applications who are the resource owner and when basically there are no users involved, a batch (cron) job or a … Continue reading “Connect to Dynamics 365 Web API using OAuth 2.0 – Client Credentials”
Source: Nishant Rana


Connect to Dynamics 365 Web API using OAuth 2.0 – Resource Owner Password Credential (ROPC)
Category: Dynamics 365,Microsoft Dynamics 365,oAuth,OAuth 2.0,Web API,WebAPI Author: Nishant Rana Date: 1 year ago Comments: 0

The ROPC grant type should only be used in scenario when the Client application is absolutely trusted with user credentials and when redirect based flow are not possible. It was introduced for the Legacy Application for quick migration and is now more or less considered obsolete by OAuth Working group, and ideally should not be … Continue reading “Connect to Dynamics 365 Web API using OAuth 2.0 – Resource Owner Password Credential (ROPC)”
Source: Nishant Rana