Hello,
I have a workflow which includes a SDK script. The script searches through a specific folder and identifies all the document types within that folder, this result is then put into a string.
The script then compares the above string against a list of required documents, if all required documents are within the folder a token gets set to true, if false an email is sent to the user notifying them that documents are missing.
I want the script to identify which required documents are missing within the specific folder, which will then be stated within the email - I've had a quick play with tokens and some script that essentially said "does not contain" but no luck.
Example: The specific folder has documents for: Eggs, Beans, Toast and Pancakes.
Required documents = Eggs, Beans, Toast, Pancakes and Sausages.
I would like the script to identify that Sausages is missing and then state this within the email body.
Any help would be greatly appreciated.
Thanks,
Andy