10-27-2020 06:48 AM
In this Microsoft Power Platform video, we will explore flow state machine approval workflow pattern.
Topics covered:
✔️ State Machine workflow pattern
✔️ Dynamically define approvers
Scenario is a Contracts Management approval workflow wherein the approval flow begins from Department review and then moves to Legal review for final approval. Both Department and legal can send request back to requestor. Requestor can then resubmit, and the process will restart. Flow will keep moving back and forth until final approval or the requestor withdraws the request.
Key to note: This process needs to complete within 30 days else flow will timeout.
Approvals Playlist - https://bit.ly/learnflowapprovals
Learn Expressions - https://aka.ms/learnexpressions
#StateMachineApprovals #ApprovalsCookbook #Flow #PowerAutomate #Approvals #flowapprovals #PowerPlatform
watch?v=5Mypn4oCJdw
@RezaDorrani , I see that the trigger is only when an item is created. Can you do a state machine flow if the trigger is a powerapp button? In my solution, form data is captured in a powerapp, submitted to a sharepoint list and through power automate, a document is generated from a template combined with the metadata in a Sharepoint library, which is attached to the approval email).
If the approvers want changes, how would I handle changes in the 'change request case'? I'm thinking I would include a deep link in the approval email to the creator of the document so they can link back to the power app and edit the form of 'the item', modify the required fields and resubmit the form.
Trouble is the first instance of the new form that is submitted by the user is the schema that is mapped to the power apps trigger in power automate. How do I get the modified fields back into the flow and into the 'change request case' whilst the flow is running (ie the trigger cannot be triggered again)?
I'm not clear on how you would handle the change and where to get the changed data from and how to map it into the list item and library.
If you have any advice on how to go about this I would be most grateful. Even if you tell me that this can't be done I would appreciate it. Then I can at least design the flow sequentially.
Thank you Reza!
Best,
Daniel