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

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

1 Answer 1

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 and acknowledge you have read our privacy policy.

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