Wednesday, May 21, 2014

How to get/set Form header field in MS CRM 2011 and MS CRM 2013 !!!

There is no supported method in SDK to get and set form header field value using JavaScript. However, there is a workaround to achieve this just place field in Form Header and Form as well (You can hide field from Form in case of you don’t want to show the user). Then you can get and set the field values.

// to get field value
var Value=Xrm.Page.data.entity.attributes.get("new_field").getValue();

// to set field valuenew_field
Xrm.Page.data.entity.attributes.get("new_field").setValue(100);

No comments:

Split the String values with a special character in MS Flow to convert this into Array

 Many times we have a requirement to prepare the Mailing address for some of the documents, suppose there are Address Line1, Address Line2, ...