Hi,
today I searched a dirty field at a XRM form. There is an easy way to find it:
Open the developer tool bar and go to scripts and fire these script:
1 2 3 4 5 6 7 |
<p style="padding-left: 30px;">// Get all attributes</p> <p style="padding-left: 30px;">var y = frames[0].Xrm.Page.getAttribute();</p> <p style="padding-left: 30px;">for(var x in y){ var z = y[x];</p> <p style="padding-left: 30px;">// If we can get is dirty on them, and they are dirty, print the name</p> <p style="padding-left: 30px;">if (z.getIsDirty && z.getIsDirty()){</p> <p style="padding-left: 30px;">console.log(z.getName());</p> <p style="padding-left: 30px;">} }</p> |
Now you find the fields in the log above.
I hope it will help you.
No comments yet.