addOnPreProcessStatusChange (Client API reference)
Applies to Dynamics 365 (online), version 9.x
Adds a function as an event handler for the OnPreProcessStatusChange event so that it will be called before the business process flow status changes.
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
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho