document-has-attachment
If the document has a given attachment.
{
"evaluator": "document-has-attachment",
"condition": "{attachmentId}"
}
Example
This block, taken from the Configuration docs, uses document-has-attachment inside an and evaluator. The custom-download-scan document action is only included if the document is both a file and also has a scan attachment.
{
"evaluator": "and",
"condition": [{
"evaluator": "document-is-file"
}, {
"evaluator": "document-has-attachment",
"condition": "scan"
}],
"config": {
"document-actions": [{
"id": "custom-download-scan"
}]
}
}