From the MSDN article on the JS Xrm object
getDataXml
Returns a string representing the XML that will be sent to the server when the record is saved.
Only data in fields that have changed are sent to the server.
<account>
<name>Contoso</name>
<accountnumber>55555</accountnumber>
<telephone2>425 555-1234</telephone2>
</account>
Does anyone know if there is an equivalent set method or any way to mimic it? I'm just experimenting and wondered if anyone had tried anything similar?
Ultimately I'm interested in dynamically passing information to a plugin. Obviously one way is to hide a field on a form, and populate it as and when. It may well be that I have to do that. But it would be much easier if I could pass a flag 'foo' to the plugin, detect it there and perform logic A, B or C depending on it without relying on the entity having the flag field.
I know this isn't quite a typical stack question so I will understand votes to close!