title | description | author | ms.author | ms.date | ms.reviewer | ms.topic | applies_to | search.audienceType | contributors | ||
---|---|---|---|---|---|---|---|---|---|---|---|
addOnSave (Client API reference) in model-driven apps| MicrosoftDocs |
Adds a function to be called when the OnSave event is triggered. |
HemantGaur |
hemantg |
03/12/2022 |
jdaly |
reference |
Dynamics 365 (online) |
|
|
[!INCLUDE./includes/addOnSave-description.md]
formContext.data.entity.addOnSave(myFunction)
[!INCLUDEcc-terminology]
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
[!INCLUDEfooter-include]