You need to create a client-side code for interaction with business process flow on a model-driven app's form.
Please select Client API objects you can use in your code.
Click on the arrows to vote for the correct answer
A. B. C. D. E.Correct Answers: B and D
The business process flow is one of the Power Automate flow types.
It guides users through the process of data operations with one or several Dataverse tables.
Business process flow consists of stages.
Each stage can be associated with only one Dataverse table, but optionally, you can select related tables in the One-to-Many relationship with the primary stage table.
A stage contains one or more steps that represent the table's fields.
If you need to interact with the business process flow on a form with client-side code, there are two types of objects that you can use: the Data - formContext.data and UI - formContext.ui.
The formContext.data object includes formContext.data.process.
It provides objects, events, and methods for interaction with the form's business process flow data.
The business process flow triggers the client-side process events whenever the process manipulates the record, changes the stage, or the status of the process changes to Active, Finished, or Aborted.
The formContext.ui object includes formContext.ui.process that provides methods to interact with the form's business process control.
All other options are incorrect.
For more information about using the Client API for client-side interaction with business process flow, please visit the below URLs:
Sure, I'd be happy to help!
The Microsoft Power Platform provides various client-side APIs that developers can use to interact with model-driven apps' forms. Among the objects listed in the question, the following objects can be used to interact with business process flow:
A. formContext.ui.navigation
: This object provides methods to navigate between different stages and steps of the business process flow. For example, you can use the navigateToNextPage
method to move to the next page in the process flow.
B. formContext.data.process
: This object provides access to the current instance of the business process flow. You can use the getActiveProcess
method to retrieve the current process flow instance and then use methods such as getActiveStage
and getActivePath
to retrieve information about the current stage and path.
D. formContext.ui.process
: This object provides methods to interact with the business process flow control on the form. For example, you can use the setDisplayState
method to show or hide the business process flow control.
The remaining objects listed in the question can be used for other purposes:
C. formContext.data.entity
: This object provides access to the data of the record displayed on the form. You can use methods such as getAttribute
and setDataValue
to read and modify the data.
E. formContext.ui.formSelector
: This object provides methods to switch between different forms of the current entity. For example, you can use the items
property to retrieve a list of available forms and the navigateTo
method to switch to a different form.
I hope this explanation helps you understand the client API objects you can use to interact with business process flows on model-driven app forms.