@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