Record image not showing in Global Search

Problem Just after installing the v9 update for our MS Dynamics CRM 365 instance, we started to notice that when using global search, the resulting case records where not showing the record image, instead, it was always showing the default entity image. Solution Problem resides in the fact that after installing new versions sometimes there … Continue reading Record image not showing in Global Search

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 = Xrm.Page.data.entity.attributes.get("FIELD_NAME"); // Get Field value var Field_Value = Xrm.Page.data.entity.attributes.get("FIELD_NAME").getValue(); // Set Field Value (String) var Field_Value = Xrm.Page.data.entity.attributes.get("FIELD_NAME").setValue("HELLO WORLD"); // Set Field Label Xrm.Page.ui.controls.get("FIELD_NAME").setLabel("EXAMPLE");

Show notification with Javascript – Dynamics CRM

To dynamically show a notification message in a form, use the following JavaScript code: /* Parameters: * First parameter is the text you want to display * Second parameter is to set the Message Level, these could be: INFO, ERROR, WARNING * Third parameter is just an ID for the message */  Xrm.Page.ui.setFormNotification("This is a … Continue reading Show notification with Javascript – Dynamics CRM