addOnSave (Client API reference)

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

Adds a function to be called when the record is saved.

Syntax

formContext.data.entity.addOnSave(myFunction)

Parameter

Name Type Required Description
myFunction function reference Yes The function to be executed when the record is saved. The function will be added to the bottom of the event handler pipeline. The execution context is automatically passed as the first parameter to the function. See Execution context for more information.

removeOnSave

Form OnSave event