Showing posts from January, 2018

Microsoft Dynamics 365 v9.0 latest feature – Show Progress Indicator

In latest release of Dynamics 365 i.e. v9.0 MS has introduces many new features to enhance the user experience, Progress indicator is one of them. Many times we need to write client side javascript code which take some time to execute due to many reasons (further server side code running etc). In such case, in earlier version user were not able to know that if anything is happening in background and  user needed to wait for next response from crm system. Now in this release, MS has introduced progress indicator which is can be called as showProgressIndicator function of Xrm.Utility. namespace. It’s take a text string as parameter to display on the progress indicator. We have created an example test case of it’s use in which can be utilize in more relevant cases like while calling any function from ribbon button etc to show message to user. Here we are loading the mobile no of primary contact of an account and showing it in an alert message and during the period we want user

CRUD Operation using Xrm.WebAPI In Dynamics 365-CRM

With Microsoft releasing Dynamics 365 update 9.0, now, we have a new library to implement WebAPI methods using Xrm.WebApi. Instead of writing the complete request, now we can just use direct the CRUD methods from the Web API. Xrm.WebApi has two properties to use for the Online and the Offline client respectively. In this article, we are going to implement a sample HTML web resource using Xrm.WebApi for the online client. Now, to create an entity record, we can simply call Xrm.WebApi Create method using the following parameters.     <script>         function createAccount() {             // collect account data             var data = {                 "name": document.getElementById("txtname").value,                 "address1_city": document.getElementById("txtcity").value,                 "telephone1": document.getElementById("txtphone").value,                 "numberofemployees": doc