1

I have a MS Flow Approval process which is triggered via a selected file in SharePoint. The flow should be:

  • User Selects file and triggers flow
  • Flow Approval process starts which emails manager for approval
  • List item is published if approval process accepted

The problem is it seems to fail if the manager doesnt approve instantly. See flow: MS Flow

My assumption is the sharepoint token is expiring, but is there a work around? its happening within 48hours.

update: I read somewhere that I need to do a Get metadata after the approval process to refresh the etag, I did this, with the same error, screen shot below:

enter image description here

  • Hi, can you add screenshot of the 'Set Content Approval Status'? Thank you – Zdeněk Vinduška Mar 5 at 9:36
  • Ive added it along with the update – michael Mar 5 at 10:48
  • Under which account you are publishing this flow? – Zdeněk Vinduška Mar 5 at 11:20
  • A user with Full control over the document library – michael Mar 5 at 11:25
  • Ok, so if somebody approve instantly it's working correctly? – Zdeněk Vinduška Mar 5 at 11:26
0

Is the file, or its metadata, being updated by someone (or another process) after initially being set to Pending, but before the manager approves?

If the document is updated in any way, the document would automatically revert to draft mode. However, this won't stop your Flow. When the manager eventually does try to approve, the Flow will fail because the document needs to be at Pending/Submit mode. This could certainly explain why the Flow works if approved immediately (as nobody has had a chance to edit).

You can verify this by adding an additional "Set Content Approval Status" immediately before the final Approve action:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.