Hi, I got a requirement to update CRM Field data on a Ribbon Button click. I will be calling the following java script method from ribbon button. Here we will set value to the CRM Field and then set force submit to the field. After that we will call the save method, it will save the crm Form Data.
function SaveData() {
Xrm.Page.getAttribute("new_field").setValue("100");
// setting Force Submit to the field, This must be set to save the data
Xrm.Page.getAttribute("new_field").setSubmitMode("always");
// Call Form save method
crmForm.Save();
}
Happy coding.. :)
Hey Guru...thnks for the post.
ReplyDelete