Money and (Base) Fields in Dynamics CRM

Today while creating fields for a custom entity in CRM 365, I found that every time I create a Money field, there's another one that is created automatically with the same logical name but ending with "_base". Why this happens? The reason of why this field is created is because, if an entity has a … Continue reading Money and (Base) Fields in Dynamics CRM


OptionSet fields and Javascript – Dynamics CRM

In order to get and set values in an OptionSet field in JavaScript, use the code below: // Get Option Set var Option_Set ="FieldName"); // Get Option Set / Selected Option var OptionSet_Selcted_Option ="FieldName").getValue(); // Get Option Set / Options var OptionSet_Options ="FieldName").getOptions(); // Get Option Set / Label text var OptionSet_Label_Text … Continue reading OptionSet fields and Javascript – Dynamics CRM

Get, Set and Update fields with JavaScript – Dynamics CRM

Usually it's required to get, update or change fields dynamically with JavaScript. Find below some easy methods to achieve some of these necessities // Get Field var Field ="FIELD_NAME"); // Get Field value var Field_Value ="FIELD_NAME").getValue(); // Set Field Value (String) var Field_Value ="FIELD_NAME").setValue("HELLO WORLD"); // Set Field Label Xrm.Page.ui.controls.get("FIELD_NAME").setLabel("EXAMPLE");