Dynamics CRM Javascript · Javascript

{Dynamics 365} Refresh Timeline using Javascript

Recently while working on one of the project we wanted to refresh the Timeline control on the form using code. We had a button on ribbon to create notes and on click of that we were creating Notes record using Web API. Once notes were getting created, newly created notes were not visible on Timeline.…… Continue reading {Dynamics 365} Refresh Timeline using Javascript

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 CRM Javascript · Javascript

Dynamics CRM 365 set Lookup & Regarding field while using Xrm.Navigation.openForm formParameters

Today we had a requirement to open new form on click of button and also set lookup field on the child entity form. On MSDN docs sample code has provided the syntax for other data types but it does not have syntax for lookup field so I though of doing it on my trial instance.…… Continue reading Dynamics CRM 365 set Lookup & Regarding field while using Xrm.Navigation.openForm formParameters

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

Dynamics 365 WEB API · Dynamics CRM Javascript · Javascript

{Dynamics 365 Web API} Setting Multiselect optionset values

Multiselect optionset field is a great feature introduced by microsoft. With the Web API, you set the values by passing a string containing comma separated number values as shown in the following example: POST [organization uri]/api/data/v9.0/contacts HTTP/1.1 Accept: application/json Content-Type: application/json; charset=utf-8 OData-MaxVersion: 4.0 OData-Version: 4.0 { “@odata.type”: “Microsoft.Dynamics.CRM.contact”, “firstname”: “Wayne”, “lastname”: “Yarborough”, “new_testmultiselect”: “1,…… Continue reading {Dynamics 365 Web API} Setting Multiselect optionset values

Dynamics CRM Javascript · Dynamics CRM Ribbon Customization · Javascript

Dynamics 365 CRM Hide Subgrid Ribbon Button based on Parent Entity Field value

Today I was going through Dynamics Community Forum and one of the question which was asked is to hide subgrid button based on parent entity field value. As we all know, we can not directly use executioncontext in ribbon button. We have to use PrimaryControl to get form context from ribbon. We will have to…… Continue reading Dynamics 365 CRM Hide Subgrid Ribbon Button based on Parent Entity Field value

Dynamics CRM Javascript · Javascript

Microsoft Dynamics 365 – troubleshooting of client side scripts

In this blog I will share my experience on developing and specially troubleshooting client-side javascript. Point #1 If you got an error during the execution of client side javascript attentivly recheck the log filethat you can download from error log window. function ContactFormOnLoad(executionContext) { var formContext=executionContext.getFormContext(); alert(formContex.getAttribute(“firstname”).value()); } Error log from Download Log File TypeError:…… Continue reading Microsoft Dynamics 365 – troubleshooting of client side scripts

D365 Error · Dynamics 365 WEB API · Dynamics CRM Javascript · Javascript

Dynamics CRM 365 WEB API Common Errors and Resolution

While working with Dynamics CRM web api we may get different exceptions. I have compiled list of common error and their resolution based on my experience working on recent projects Error – An error occurred while validating input parameters: Microsoft.OData.ODataException: Does not support untyped value in non-open type. POST – https://CRMORG.api.crm.dynamics.com/api/data/v9.1/leads { “firstname”: “Jenny”, “lastname”:…… Continue reading Dynamics CRM 365 WEB API Common Errors and Resolution