Forum Discussion
JohnChu
Feb 10, 2022Copper Contributor
Unable to "Set content approval status" when flow starts with "For a selected file"
I created 2 approval workflows. The first workflow starts with "When an item or a file is modified" and the second workflow starts with "For a selected file". For the exception of the starting point,...
JohnChu
Feb 11, 2022Copper Contributor
One more thing, when setting the content approval status, it must go in a specific order. The document starts as ‘Draft’. Once it’s submitted for approval, it’ll go into ‘Pending’ status. From there it can be ‘Approved’ or ‘Rejected’. You can’t skip the order. If document is in ‘Draft’, you can’t approve nor reject it directly. It must be in the ‘Pending’ status before that.
Why do I mention this? That's because if you start with the action "When an item or a file is modified", then the file is automatically set as "Pending" when submitted for approval. However, if you start with "For a selected file" the file stays as "Draft", in which case you need to add an extra step to set the content approval to "Submit" then set its final approval status in later steps. Otherwise, you'll get a misleading BadGateway error.
Why do I mention this? That's because if you start with the action "When an item or a file is modified", then the file is automatically set as "Pending" when submitted for approval. However, if you start with "For a selected file" the file stays as "Draft", in which case you need to add an extra step to set the content approval to "Submit" then set its final approval status in later steps. Otherwise, you'll get a misleading BadGateway error.