getDataXml (Client API reference)

Applies to Dynamics 365 for Customer Engagement apps version 9.x

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 set to the server.


Return Value

Type: String.

Description: In this example, the following three fields for an account record were updated: name, accountnumber, telephone2.

"<account><name>Contoso</name><accountnumber>55555</accountnumber><telephone2>425 555-1234</telephone2></account>"


This method does not work with Microsoft Dynamics 365 for tablets.