Month: June 2019

Dynamics Option Set - Get/Set the Dynamics 365 Option Set text and values.

Get/Set the Dynamics 365 Option Set text and values.

There are many scenarios where we need to get the option name and value of the option-set field. The below code can be used to retrieve the option name and its values. 1. To get option name from OptionSet Below code can be used to get the option name by passing the option value. 2. To get the text and value of the selected CRM OptionSet Below code can be used to get the text and value of selected optionset: 3. To get the value of selected CRM OptionSet. Below code can be used to get the value of selected

Continue reading
Dynamics-365-Lookup-Field

JavaScript to get/set the lookup value in Dynamics 365.

JavaScript to get/set Lookup field data in Dynamics 365 Let’s discuss about the Lookup field in Dynamics 365 in this blog. Lookup field is little different than the normal fields available in Dynamics 365 CRM. This field is basically of type EntityReference like we generally have array. This EntityReference type is the combination of three values i.e. Recordid, RecordName and  EntitySchemaName. When user create a new lookup field in any entity, then the system will create a N:1 relationship with the other entity. 1. Get Lookup Field Data in Dynamics 365 The below method can be used to get the lookup

Continue reading