Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.17 KB

File metadata and controls

38 lines (27 loc) · 1.17 KB
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)
developer
JimDaly

addOnSave (Client API reference)

[!INCLUDE./includes/addOnSave-description.md]

Syntax

formContext.data.entity.addOnSave(myFunction)

[!INCLUDEcc-terminology]

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.

Related articles

removeOnSave
Form OnSave event

[!INCLUDEfooter-include]