The collection of attributes for the record.
Adds a function to be called after the OnSave is complete.
The handler.
Adds a handler to be called when the record is saved.
The handler.
Gets an serialized-XML string representing data that will be passed to the server upon saving the record.
The XML in string format.
This function does not work with Microsoft Dynamics CRM for tablets.
"<account><name>Contoso</name><accountnumber>55555</accountnumber><telephone2>425
555-1234</telephone2></account>".
Gets a lookup value that references the record.
A lookup value that references the record.
Removes the handler from the "on save" event.
The handler.
Saves the record synchronously with the options to close the form or open a new form after the save is completed.
When using quick create forms in the web application the saveandnew option is not applied. It will always work as if saveandclose were used. Quick create forms in Microsoft Dynamics CRM for tablets will apply the saveandnew behavior.
Deprecated in v9.1; This method is deprecated and we recommend to use the formContext.data.save method.
Saves the record with the given save mode.
Optional
saveMode: Xrm.EntitySaveMode(Optional) the save mode to save, as either "saveandclose" or "saveandnew". If no parameter is included in the method, the record will simply be saved.
Generated using TypeDoc
Interface for the form's record context, Xrm.Page.data.entity
Deprecated
Use Entity instead.