Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.33 KB

File metadata and controls

40 lines (26 loc) · 1.33 KB
title description author ms.author ms.date ms.reviewer ms.topic applies_to search.audienceType contributors
addOnStageChange (Client API reference) in model-driven apps| MicrosoftDocs
Includes description and supported parameters for the addOnStageChange method.
HemantGaur
hemantg
03/12/2022
jdaly
reference
Dynamics 365 (online)
developer
JimDaly

addOnStageChange (Client API reference)

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

Syntax

formContext.data.process.addOnStageChange(myFunction);

Parameter

Name Type Required Description
myFunction Function reference Yes The function to be executed when the business process flow stage changes. 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.

You should use a reference to a named function rather than an anonymous function if you may later want to remove the event handler.

Related articles

removeOnStageChange
formContext.data.process

[!INCLUDEfooter-include]