Best way to find dirty fields
Views (3008)
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');
*This post is locked for comments