MS CRM - What is the "IsDirty" Method ?


The "IsDirty()" Method returns a Boolean value indicating if there are unsaved changes to  attributes values.


//To Check if the entity is dirty

//To Get Dirty Fields
var attributes = ;
for (var i in attributes)
var attribute = attributes[i];
if (attribute.getIsDirty())
alert("attribute dirty: " + attribute.getName());

2 thoughts on “MS CRM - What is the "IsDirty" Method ?”

Leave a Reply

Your email address will not be published. Required fields are marked *