cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IntrepidExploer
Level: Powered On

Publish approval (manual) flow

I've spent some time trying to create a publish approval flow for SharePoint documents. What I have eventually come up with is a manually initiated flow, which I hope is a useful stop-gap until a publish trigger is released.

01.png02.png03.png

 

 

13 REPLIES 13
Super User
Super User

Re: Publish approval (manual) flow

in real content approval, the content (document) is not published until it is approved

IntrepidExploer
Level: Powered On

Re: Publish approval (manual) flow

This flow does not publish the document before it has been approved - the initial set content approval is for submit, which sets the status to pending. Depending on the approve/reject decision, the relevant approval status is then set.

Super User
Super User

Re: Publish approval (manual) flow

do you have to use the Etag ?

IntrepidExploer
Level: Powered On

Re: Publish approval (manual) flow

No. The ETag is there to check that the document being approved is the same version that was submitted for approval - i.e. not a subsequent draft.

 

I will try and find some time to write up what it's actually doing.

 

Super User
Super User

Re: Publish approval (manual) flow

in My case it doesn't work : I've created a simple doc lib with approval 

 

bugapproval2.png

 

bugapproval1.png

 

When I add a new document in the library the flow runs and succeed

bugapproval3.png

 

But the status is still "Pending" even tough the Flow changed it to Approved...

bugapproval4.png

Administrator
Administrator

Re: Publish approval (manual) flow

Very cool!!! 

 

Thank you for sharing this!

bvol
Level: Powered On

Re: Publish approval (manual) flow

@sergelucadid you find the solution to this issue? I am seeing the same behavior when performing those steps.

PetersonBriones
Level: Powered On

Re: Publish approval (manual) flow

This will generate an error when the document status is already pending. Before the you set the approval status to "pending" there should be a condition to check whether it's already in pending status or not. Unfortunately I can't find any Flow action to get the current approval status.

RichBurdes
Level: Powered On

Re: Publish approval (manual) flow

This link looks to hold the answer for setting the approval status to approved from pending.

 

http://blog.leitwolf.io/approve-a-sharepoint-document-with-flow-set-content-approval/

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,805)