web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Best way to find dirty fields

Nicolas.Plourde Profile Picture Nicolas.Plourde 240

Hi folks,

Wondering what is that nasty field that kepts getting dirty when you open a form? Search no more and use:

Xrm.Page.data.entity.getDataXml();

It returns the data that will be send once you save the page.

"646a9377-f184-e611-80c9-0050569307c5"

So, instead of looping through all fields and checking for who’s dirty. Do an indexOf on it:

Xrm.Page.data.entity.getDataXml().indexOf('<primarycontactid');

Comments

*This post is locked for comments