I am often asked about seperation of permissions with working and published documents, and a way of doing this nicely with workflow is to use the Convert document action. We have many instances within the business where a small team have access to a "working" document library but push finalised and approved documents to an open document library for all authenticated users to consume. We will use this scenario for the working example below. We will have our "working" document library called Read Write PDF and have our "published" document library called Shared Documents. All users will have access to read the content of Shared Documents but only team members will have access to Read Write PDF.
In this example I have decided to catch the errors (if any occur) in the above action and store the occurrence and text in variables called vBoolError (did the error occur) and vTextError (what was the error).
I will use a Run if logic action to log the details of the error to the history list if an error occurred.
The idea behind this is that we want to check if our newly created variable vBoolError is equal to yes, which would imply that the Convert document action errored.
The configuration above checks if the variable vBoolError = yes
Inside the Run if action, I use Log in history list action to log the reason for the error in the message body by referencing the variable vTextError
Add any additional actions as required to your workflow. Change the start up options as required (in this example we were happy with a manual start but this could be done after multiple approvals for example) and Publish.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.