getDataXml (Client API reference)
Returns a string representing the XML that will be sent to the server when the record is saved. Only data in columns that have changed or have their submit mode set to "always" are sent to the server.
Syntax
formContext.data.entity.getDataXml();
Return Value
Type: String.
Description: In this example, the following three columns for an account record were updated: name, accountnumber, telephone2.
"<account><name>Contoso</name><accountnumber>55555</accountnumber><telephone2>425 555-1234</telephone2></account>"
Remarks
This method does not work with Microsoft Dynamics 365 for tablets.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for