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

Flow - Sharepoint Doc Library - if approver edits document to send back to owner (reject)

I have a MS flow approval flow set up working fine if a document is approved and also if its rejected. However, if the approver receives the approve/reject email and then opens word and makes changes or comments within document and saves, the document then saves in draft status back to sharepoint. If the approver then clicks reject, flow will give an error as its draft status not pending status.

 

What can I add to the current flow to address this please?

1.png2.png3.png

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

You are using the Content Approval status column for recording the approval.  That column is a holdover from the Publishing features. With publishing Content Approval only works for Major versions, not minor versions (draft).  So when the user edits and saves it back as a minor version the approval will throw exactly the kind of error you are seeing.  The fix is to either teach approvers to save as a major version before rejecting, or to accept the error and terminate the flow if they edit the document. Because of the way content approval is designed to work there really is no other workaround.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Pstork1
Dual Super User III
Dual Super User III

You are using the Content Approval status column for recording the approval.  That column is a holdover from the Publishing features. With publishing Content Approval only works for Major versions, not minor versions (draft).  So when the user edits and saves it back as a minor version the approval will throw exactly the kind of error you are seeing.  The fix is to either teach approvers to save as a major version before rejecting, or to accept the error and terminate the flow if they edit the document. Because of the way content approval is designed to work there really is no other workaround.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Thak you, thats very helpfulSmiley Happy

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,937)