Feb 10 2022 12:45 PM
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, the actions that follows are the same for both workflows. The first workflow runs to completion. The second one, however, fails when setting the content approval status. After a fair amount of troubleshooting, the problem stems from the fact that the originally selected file identifier isn't available in the second workflow. I tried adding "Get file property" and "Get file metadata" actions to no avail. As it turns out, the only dynamic content option for Id in "Set content approval status" action is the ID from the "For a selected file" action, which isn't the File Identifier required when setting the content status. Any help is appreciated. Thanks!
Feb 11 2022 09:08 AM
RESOLVED! In the Dynamic Content selector, the correct field to use is the ID rather than the Identifier. The ID resolves to an integer value, while the Identifier resolves to a relative path to the Library. For a new workflow user, it's really confusing when to use what field as they all point to some type of id.
Feb 11 2022 09:36 AM