Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.57 KB

File metadata and controls

38 lines (27 loc) · 1.57 KB
title description author ms.author ms.date ms.reviewer ms.topic search.audienceType contributors
addOnPreProcessStatusChange (Client API reference) in model-driven apps in Power Apps| MicrosoftDocs
Includes description and supported parameters for the addOnPreProcessStatusChange method.
HemantGaur
hemantg
03/12/2022
jdaly
reference
developer
JimDaly

addOnPreProcessStatusChange (Client API reference)

[!INCLUDE]

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

Syntax

formContext.data.process.addOnPreProcessStatusChange(myFunction);

Parameter

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

This client API is only supported on the Unified Client. The legacy web client does not support this client API.

Related articles

removeOnPreProcessStatusChange
formContext.data.process

[!INCLUDEfooter-include]