Apurv's D365 Blog

Code Samples & Troubleshooting Tips on Dynamics 365 (CRM) and Portals

Troubleshooting and developing oauth enabled applications with Dynamics 365

OAuth applications can be developed using Dynamics 365 Online and OnPremise versions. Let’s see these in more details: HOW DOES OAUTH WORK IN GENERAL   The Authorization Server is the v2.0 endpoint. It is responsible for ensuring the user’s identity, granting and revoking access to resources, and issuing tokens. It is also known as the identity… Read more

Configure Azure and create dynamics 365 apps using OAuth, WebAPI (C#)

Hey Everyone This blog covers the configuration steps that are required for app registration in Azure console and then consume WebAPI for creating and search existing records in CRM. Prerequisites : Using Azure Management Console Json Serialize using Newtonsoft Basic understanding of HttpClient and WebAPI in general ADAL (Azure Active Directory Authentication Library) CONFIGURE YOUR… Read more

Dynamics 365 – WebAPI Crud Operations (JavaScript)

Hey Guys, It’s been a while since I’ve posted. I know for sure this is late. I think it would be helpful to see basics items on WebAPI (using JavaScript). The article today talks about the CRUD (Create, update, read and delete) operations using WebAPI endpoints. You must have working experience in below areas: –… Read more

WebAPI Series 1 – Using Jscript to update record attributes

Hey Folks, Since the launch of CRM 2016 we have been officially using WebAPI which is something the coolest. I’m not going to talk much here about this but have developed a sample for quick use. The sample is used for updating an account record.   function Test() { var clientUrl = Xrm.Page.context.getClientUrl(); var req… Read more