formContext.data (Client API reference)
Applies to Dynamics 365 (online), version 9.x
Provides properties and methods to work with the data on a form.
|attributes||Collection of non-entity data on the form. Items in this collection are of the same type as the attributes collection, but they are not attributes of the form entity.
More information: Collections
NOTE: This is supported only for Unified Interface clients.
|entity||Provides methods to retrieve information specific to the record displayed on the page, the save method, and a collection of all the attributes included on the form. Attribute data is limited to attributes represented by fields on the form.
More information: formContext.data.entity
|process||Provides objects and methods to interact with the business process flow data on a form.
More information: formContext.data.process
|addOnLoad||Adds a function to be called when form data is loaded.|
|getIsDirty||Gets a boolean value indicating whether the form data has been modified.|
|isValid||Gets a boolean value indicating whether all of the form data is valid. This includes the main entity and any unbound attributes.|
|refresh||Asynchronously refreshes and optionally saves all the data of the form without reloading the page.|
|removeOnLoad||Removes a function to be called when form data is loaded.|
|save||Saves the record asynchronously with the option to set callback functions to be executed after the save operation is completed.|