Hello. I am creating some functionality in ETM which updates the description on normal tasks if an attachment is present on the parent. I would like the destination rule to only send the message to the queue if there is actually at least one attachment present. I have tried the following with no luck.
if ($new.eventTypeEnum = "NORMALTASK" and $new.parentEvent.attachments.length >= 0, true, false)
-This expression causes an error when the SR is being submitted.

if ($new.eventTypeEnum = "NORMALTASK" and $new.parentEvent.totalAttachmentCount > 0, true, false)
-This expression does not cause any errors, but it’s also evaluating to false even if there is an attachment.
The destination entity I am using is Event, on Create only.
Does anyone know if this is possible, and if so, what the expression would look like.
| assyst Version: | 24R2 SU4 |
| Build: | 13018 Date built: Jun 11, 2025 2:27:00 AM |
Thanks,
Duncan