Build a business process flow
Business process flows are used to guide a user through the steps of your business process when working with Model-driven apps and the Microsoft Dataverse. The example below will guide you through the process and decisions you need to make when building a business process flow.
Create a business process flow
Launch Power Automate and sign in using your organizational account.
In the left pane, select Flows.
On the top bar, select Business process flows.
On the right, select Create from Blank.
In the Create business process flow pane, fill in the required fields:
Flow Name: The display name of the process doesn't have to be unique, but it should be meaningful for people who must choose a process. You can change this name later.
Name: A unique name that's based on the display name. You can change the name when you create the process, but you can't change it after the process has been created.
Dataverse entity: Select the entity to base the process on.
The entity that you select affects the fields that are available for steps that can be added to the first stage of the process flow. You can't change the entity after you save the process.
Select OK.
The new process is created, and the business process flow designer is started. The designer page has three sections:
On the left, a single stage named Account New Stage has already been created for you.
Beneath this stage is the mini map, which lets you see the whole process or quickly go to a part of the process.
On the right are components that you can drag to the designer. You can also set properties to create a business process flow.
Add stages, so that users can proceed from one business stage to another in the process:
Drag the Stage component from the Components tab to the plus sign (+) in the designer.
Select the stage, and then, on the Properties tab on the right, set the properties:
Enter a display name.
Optional: Select a category for the stage (for example, Identify or Research). This category appears as a chevron on the process bar.
When you've finished setting the properties, select Apply.
Add steps to each stage:
Drag the Step component from the Components tab to the stage.
Select the step, and then, on the Properties tab, set the properties:
Enter a display name for the step.
If users should be able to enter data to finish a step, select the appropriate field in the drop-down list.
If users must fill in the selected field to finish the step before they can proceed to the next stage of the process, select Required.
When you've finished, select Apply.
Add a branch (condition) to the process:
Drag the Condition component from the Components tab to the plus sign (+) between two stages.
Select the condition, and then, on the Properties tab, set the properties. When you've finished, select Apply.
Add a workflow to the process:
Drag the Workflow component from the Components tab to either a specific stage or the Global Workflow item:
Drag the Workflow component to a specific stage if the workflow should be triggered when the process enters or exits that stage. The Workflow component must be based on the same primary entity as the stage.
Drag the Workflow component to the Global Workflow item if the workflow should be triggered when the process is activated or archived (that is, when the status changes to Completed or Abandoned). The Workflow component must be based on the same primary entity as the process.
Select the condition, and then, on the Properties tab, set the properties:
Enter a display name.
Select when the workflow should be triggered.
Search for an existing on-demand active workflow that matches the stage entity, or create a workflow by selecting New.
When you've finished, select Apply.
To validate the business process flow, select Validate on the action bar.
To save the process as a draft while you continue to work on it, select Save on the action bar.
To activate the process and make it available to your team, select Activate on the action bar.
To define who has privileges to create, read, update, or delete the business process flow instance, select Edit Security Roles on the action bar. For example, for service-related processes, you might give customer service reps full access to change the business process flow instance. But you might give sales reps just read-only access to the instance, so that they can monitor post-sales activities for their customers.
In the Security Roles pane, select the name of a role to open the details page for that role.
On the Business Process Flows tab, select options to assign the role appropriate privileges for the business process flow.
Select Save.
Edit a business process flow
You can edit the business process flow after it has been created.
On the Power Apps main page, select Flows in the left pane.
In the list of processes, select the business process flow that you created, and then select the Edit button.
Keep the following points in mind when you edit the stages of a business process flow:
Business process flows can have up to 30 stages.
You can add or change the following properties of a stage:
Stage Name: You can change the stage name after you create the stage.
Entity: You can change the entity for any stage except the first one.
Stage Category: A category lets you group stages by the type of action. It's useful for reports that will group records by the stage that they're in. The options for the stage category come from the Stage Category global option set. You can add more options to this global option set and change the labels of existing options. You can also delete options, but we recommend that you keep the existing options. If you delete an option, you won't be able to add it back later. If you don't want an option to be used, change the label to Do not use.
Relationship: Enter a relationship when the preceding stage in the process is based on a different entity than the current stage. For the current stage, select Select relationships, and then specify the relationship that should be used when the flow moves between the two stages. We recommend that you specify relationships, because they provide the following benefits:
Attribute maps are often defined for relationships. These attribute maps automatically carry over data between records. Therefore, they help minimize the amount data entry that's required.
When you select Next Stage on the process bar for a record, any records that use the relationship are listed in the process flow. Therefore, the reuse of records in the process is promoted. In addition, you can use workflows to automate the creation of records. Users then just have to select the workflow instead of creating a record. Therefore, the process is streamlined.
Set Process Flow Order: If you have more than one business process flow for an entity (record type), you must specify which process is automatically assigned to new records. On the action bar, select Order Process Flow. For new records or records that don't already have a process flow associated with them, the first business process flow that a user has access to will be used.
Enable Security Roles: A user's access to a business process flow depends on the privileges that are defined for the business process flow in the security role that's assigned to the user. By default, only the System Administrator and System Customizer security roles can view a new business process flow.
Now you have seen firsthand the process and options for creating a business process flow. You can now apply these lessons to your own business process flow and continue to refine your flow by adding conditions, for example. Business process flows offer multiple levels of customizations to help facilitate working with your business data.
The above content is taken from : https://docs.microsoft.com/
No comments:
Post a Comment