I am in the need for a Condition that will check to see if a collection has an attachment added or not.
Here is my calculation:
import System
static def GetAttributeValue(Change):
Documented = "False"
Value = Change._FTSDocumentationCol.Latest()
if Value != null:
if Value._AttachmentDocument != null: Documented = "True"
return Documented
This is the rest: Condition Equals Specific Value True
I add this as a precondition before an action can run and I don't see the action even though the Attachment Document is not NULL in the database.
Any thoughts?
I need to get run working because I have to do another and somehow merge them into one condition because the requirement is that 2 documents must be there from different collections before an action can be selected.
Thanks!