cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

SharePoint - flow approve button sets to reject

I have set up an flow for when a item is created or modyfied within a document library.

I have no errors on the flow

 

When clicking Approve, the status changes to Rejected in the library and the rejection email is sent. The whole process is then started again and doesn't end here.

When clicking Reject, it does the correcvt rejected status in the library and send the rejection email but then sends another email to start approval again.

 

Any ideas on why the Approve is not working and also why the process is not ending please? I have screenshots from the condition part....thank you 🙂

 

flow1.png

 

flow2.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support
Community Support

Hi @AndreaBurgess ,

 

Thanks for providing the screen shot.

 

In the Condition, please use dynamic content Response instead of Responses.

 

I have made a test using Response, which is working properly.

 

Besides, as you are using the trigger “When an item is created or modified”, which will cause an infinite loop if you have a following action to update certain field in the same list.

 

However, in this scenario, if you are just going to update the Content approval status, then the flow will be triggered only twice for per manual modification.

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @AndreaBurgess ,

 

Thanks for updating and glad to hear that it works.

 

Currently, Flow doesn’t have a trigger for Create and Modify separately, so I am afraid that one duplicate approval cannot be avoided.

 

Here is one similar request, please vote it as well:

https://powerusers.microsoft.com/t5/Flow-Ideas/Trigger-flow-When-Item-is-Modified-only/idi-p/237883

 

Thanks for your understanding.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support
Community Support

Hi @AndreaBurgess ,

 

Thanks for providing the screen shot.

 

In the Condition, please use dynamic content Response instead of Responses.

 

I have made a test using Response, which is working properly.

 

Besides, as you are using the trigger “When an item is created or modified”, which will cause an infinite loop if you have a following action to update certain field in the same list.

 

However, in this scenario, if you are just going to update the Content approval status, then the flow will be triggered only twice for per manual modification.

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

That was very helpful thank you, it worked great.

 

Regarding the duplicate approvals, to prevent this from happening, would I have to create seperate flows for create and modify?

Hi @AndreaBurgess ,

 

Thanks for updating and glad to hear that it works.

 

Currently, Flow doesn’t have a trigger for Create and Modify separately, so I am afraid that one duplicate approval cannot be avoided.

 

Here is one similar request, please vote it as well:

https://powerusers.microsoft.com/t5/Flow-Ideas/Trigger-flow-When-Item-is-Modified-only/idi-p/237883

 

Thanks for your understanding.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (73,493)