C# Code · Dynamics 365 WEB API · Dynamics Plugins

{Common Data Service} Pass shared variable to plugins execution pipeline from Organization service and WEB API

Introduction The shared variable property allows for including data that can be passed from the API or a plug-in to a step that occurs later in the execution pipeline. You can set a string value that will be available to plug-ins within the ExecutionContext in the SharedVariables collection. Note :- Shared variable passed from Organization Service and…… Continue reading {Common Data Service} Pass shared variable to plugins execution pipeline from Organization service and WEB API

C# Code · Dynamics 365 WEB API

Dynamics CRM Web API C# Auto Refresh Access Token while performing API request to CDS

As we know to connect to CDS WEB API from C# application we first need to acquire access token and validity of that is 1 hour. While performing small number of requests this will be sufficient. However when we want to run long running process we will get HTTP 400 error when token expires. To…… Continue reading Dynamics CRM Web API C# Auto Refresh Access Token while performing API request to CDS

D365 Error · Dynamics 365 WEB API

{Dynamics 365 WEB API} Can’t query date values bug fixed

Microsoft Dynamics 365 Web API Limitations This issue was not actually limitation, just a syntax issue. Don’t use single quotes when specifying a date as value for a filter. When querying a date property, such as the birthdate of a contact, the following query syntax works. /contacts?$select=fullname,birthdate&$filter=birthdate eq 1990-01-01 Microsoft Dynamics 365 Web API Limitations…… Continue reading {Dynamics 365 WEB API} Can’t query date values bug fixed

Dynamics 365 WEB API

{Dynamics 365 WEB API} Create entity record with data returned

What’s new for developers: Microsoft Dynamics 365 Sometimes you want to retrieve an entity right after you create or update it. Earlier, you needed to use two operations. The POST request to create an entity returns an HTTP 204 (No content) status and a Uri to the entity created is returned in the OData-EntityId header…… Continue reading {Dynamics 365 WEB API} Create entity record with data returned

D365 Error · Dynamics 365 WEB API

{Alternate Key Limitation}Performing updates using alternate key in Dynamics 365 WebAPI

While updating CRM record using alternate key from Web API which has unicode character in field data, It throws Bad request exception. new_ANGLESector@odata.bind”: “/new_anglesectors(new_name=’Water Auth/Company’)”, Exception message”: “Bad Request – Error in query syntax.”, “type”: “Microsoft.OData.ODataException”, “stacktrace”: ” at Microsoft.OData.UriParser.ODataPathParser.ExtractSegmentIdentifierAndParenthesisExpression(String segmentText, String& identifier, String& parenthesisExpression) Unicode characters in key value If the data within a…… Continue reading {Alternate Key Limitation}Performing updates using alternate key in Dynamics 365 WebAPI

C# Code · D365 Error · Dynamics 365 WEB API

{Dynamics CRM WEB API C#} Parse Error Code and Message from HttpResponse

While I was working on Web API C# code, I found that many calls to CRM web api was failing and I could only see status code and reason phrase which was not much helpful. I knew that CRM web api returns the exact error message in response and verified that too from postman. I…… Continue reading {Dynamics CRM WEB API C#} Parse Error Code and Message from HttpResponse

Dynamics 365 WEB API · Dynamics CRM Javascript · Javascript

{Dynamics CRM 365 Web API} Add Required People(Activity Party) to an Appointment

An activity party represents a person or group associated with an activity. An activity can have multiple activity parties. There are 11 activity party type in Dynamics CRM customer engagement. Activity party type Value Description Sender 1 Specifies the sender. ToRecipient 2 Specifies the recipient in the To field. CCRecipient 3 Specifies the recipient in…… Continue reading {Dynamics CRM 365 Web API} Add Required People(Activity Party) to an Appointment

Dynamics 365 WEB API · Dynamics CRM Javascript · Javascript

Dynamics 365 CRM Auto Populate lookup field

One of the community forum requirement was to auto populate lookup field B based on value of Lookup field A. Scenario Field a: lookup field Field b: lookup field Based on lookup field a . value should autopopulate in lookup field b . Solution – I have added two lookup State and City on Account…… Continue reading Dynamics 365 CRM Auto Populate lookup field

Dynamics 365 WEB API · Dynamics CRM Javascript · Javascript · Uncategorized

{Dynamics CRM Web API} Calculate Total time spent on Case

First of all let me give you some background, When we resolve case from CRM case form using Resolve ribbon button you see a dialog which has Total time and Billable time auto poulated by the system. The Total Time field gets updated only when the Child Activities with duration have been marked as completed.…… Continue reading {Dynamics CRM Web API} Calculate Total time spent on Case

Dynamics 365 WEB API · Dynamics CRM Javascript · Javascript

{Dynamics CRM Web Api} Resolve Case

In today’s blog I will explain how to close incident from web api. When we Resolve case from Case form system creates record in Incident resolution entity. And the changes the status of the case. Same way we have to first create record in Incident Resolution entity from web api and then use CloseIncident action…… Continue reading {Dynamics CRM Web Api} Resolve Case