Posts

Showing posts with the label Learn JavaScript for D365 CRM

Learn JavaScript for D365 CRM

 Learn JavaScript for D365 CRM In this blog we are going to learn how to write javascript to get , set , show , hide,notify, and making field values required or none in d365 if this blog helpful for you please follow and comment below thank you function LearningJs(executionContext) {     var formContext = executionContext.getFormContext();     //getting field values      var name = formContext.getAttribute("name").getValue();     //set field values      formContext.getAttribute("name").setValue("New");     //getting lookup values      var accountlookup = formContext.getAttribute("account").getValue();     //set lookup value      accountlookup[0].Id = accountId;     //retrieving values from account lookup and setting values      if (accountlookup != null)     {         Xrm.webAPI.online.service.retieve(accountlookup, acc...