Hi to all,
First time posting on flow community, so please excuse if question is not very perceptible.
In my company we are making a new flow based on a sharepoint library, and using the trigger each time a document is created or changed we run an approval flow.
On that approval flow we can have an acceptance or a refusal from the user and based on that a field is updated in the document properties, so if document is approved goes to next approver, if not goes back to registered status.
The question here is that the first step of this flow when the document is changed or created is if the status is equal to registered if yes then go trough the flow if not stop, so my colleagues are asking if is possible to having a refussal and since the status is change back to registered the flow will run again automatically or not?
On my test I see that the flow doesn't rerun so we need to go to the document and make a change to the metadata and the flow will pick it up and run, if the metadata is changed by the flow there is no rerun.
Is my understanding correct only manual changes to documents are making the flow run?
Do we need to have a manual input on the document?
Is it possible to make it rerun without any user intervention?
Just to add some information this refusal from the user is because he identified something that is not correct so the previous persons in the approval route need to revise the information, at some previous steps if user refuses the status changes to reject or is send to archive directly.
Thank you for your help in advance.
Regards,
MFelix
Solved! Go to Solution.
@MFelix wrote:
1. Is my understanding correct only manual changes to documents are making the flow run?
2. Do we need to have a manual input on the document?
3. Is it possible to make it rerun without any user intervention?
1. No, you can have Flow trigger based upon document chanages made by Flow as well.
2. No, see above.
3. Yes, you can Run flows on a schedule, Manually trigger a flow or put the Flow actions within an Apply to each loop.
Approval documentation:
Hi @MFelix ,
Thanks for updating.
As the Status will be updated depending on other answers, you could add a Condition directly after the Trigger to check if the Status is Register or not.
If it is Register, run the following actions, if no, do nothing.
Further, as I previously suggested, add action to update the Status to Register if the approval request is not Approved so that the flow could run again.
Best regards,
Mabel
@MFelix wrote:
1. Is my understanding correct only manual changes to documents are making the flow run?
2. Do we need to have a manual input on the document?
3. Is it possible to make it rerun without any user intervention?
1. No, you can have Flow trigger based upon document chanages made by Flow as well.
2. No, see above.
3. Yes, you can Run flows on a schedule, Manually trigger a flow or put the Flow actions within an Apply to each loop.
Approval documentation:
I'd have to review your Flow to possibly provide a reason for your Flow not rerunning when an item is created or modified. What is your initial trigger?
If you could provide an expanded screenshot of your Flow and steps, and of any detailed error messages you're receiving we could likely better assist you.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Hi @Brad_Groux ,
check below the image.
The flow is much bigger but this is the point where we have the need to rerun automatically.
If you need any additional information tell me.
I appreciate your time and effort on this.
Regards,
MFelix
Hi @MFelix ,
You mentioned that “if not goes back to registered status”, will the status be changed to other value once the flow is triggered?
If so, you could consider adding action Update file properties under If No branch of the approval action.
Then the Status will be updated back to Registered, and the flow will be triggered again.
Hope this could be helpful.
Best regards,
Mabel
Hi @v-yamao-msft ,
The flow starts tu run when someone put a status of Registered, then during the flow it will change to several other status depending on the answers. But for this particular choice it has to go back to Registered.
When I read your post I started to think on one thing. Since I start the flow with a Registered Status, and the flow continues to run and changing status but the final status is Registered again (for this choice in the flow) for automation purposes the document didn't had any changes so it doesn't restart?
Is my understanding correct?
Regards,
MFelix
Hi @MFelix ,
Thanks for updating.
As the Status will be updated depending on other answers, you could add a Condition directly after the Trigger to check if the Status is Register or not.
If it is Register, run the following actions, if no, do nothing.
Further, as I previously suggested, add action to update the Status to Register if the approval request is not Approved so that the flow could run again.
Best regards,
Mabel
Hi @v-yamao-msft ,
thank you for your time and answer just two points/questions:
One addtional question:
Regards,
MFelix
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
19 | |
15 | |
10 | |
10 | |
9 |