Category Archives: Ms CRM 2016

Getting Formatted values using Web API

In our earlier post we discussed how we can fetch data using retrieve and retrievemultiple request. We demonstrated how we can include different fields from primary entity. In this post we are going to discuss how we can fetch additional information (formatted values) and related entity properties. In our retrieve example we included single valued navigation property using _navigationpropertyname_value which returns… Read more »

Writing associate & disassociate request using Web API

Associate and disassociate request is used to link and unlink records having relationship. We can link and unlink records depending on their relationship type for example, We can link records having 1:N using update request (setting lookup). In our earlier sample we demonstrated how we can update lookup field using Web API. In this post we are going to discuss… Read more »

Writing Delete request using Web API

In this post we are going to discuss how we can write delete request using Web API for Dynamics CRM 2016. We can use http DELETE method in Web API for different delete scenario. For example let say we want to remove value of specific property (attribute) using Web API, so we can simply pass the property name with the… Read more »

Writing update request using Web API

In our earlier posts, we discussed how to write create,retrieve and retrievemultiple requests, today we are going to discuss about writing update request using Web API for Dynamics CRM 2016. You can refer our below earlier posts: Create Request Retrieve Request Retrievemultiple Request To update data , we have two below http methods are available: PATCH – This method is… Read more »

Writing create request using Web API

In our earlier posts we provided sample code to write retrieve and retrievemultiple request, today we are going to provide sample code to create entity record using Web API. Let say we want to create account record and want to set different fields of different types. There are mainly two things which is different in Web API while creating entity… Read more »

Writing retrieve method using Web API

With the release of Dynamics CRM 2016, organization data services is depreciated, so going forward we need to make sure to write scripting code using Web API only. Web API implements OData V4 and can be used for any operation that we can be done using organization service, so now we can use Web API to get both data and… Read more »

Load AutoComplete options from Config Entity

In our earlier post we discussed about new scripting methods introduced in CRM 2016 to implement AutoComplete feature. In last example we used hard coded option to show over autocomplete list, but in this post we are going to demonstrate how we can bring these options from a custom configuration entity to populate under autocomplete list. We have setup a… Read more »

Using New Scripting Methods in CRM 2016 Part 2

In our earlier post, we discussed getValue and KeyPress methods introduced in CRM 2016, in this post we are going to discuss AutoComplete methods. Below two methods are added to implementing auto complete feature to text fields: • showAutoComplete • hideAutoComplete showAutoComplete– This method allows us to show list of possible values as dropdown to add auto complete feature to… Read more »

Using New Scripting Methods in CRM 2016 Part 1

With the release of Dynamics CRM 2016, new client side methods introduced that we can use to make user experience more interactive while enter data in CRM forms. Following are the methods: • getValue • Keypress • Autocomplete getValue Method – This method is used to get the latest value of the field. Earlier this method was only available in… Read more »