I need the ability to route an email to a queue/skill based on the size of the attachment.
Some of our emails contain .jpg, .pdf, .doc files that are scans or screencaps from customers. Some email signatures contain company logos that are attached as .jpg files but of diminutive size (<20kb). The jpg
scans are universally larger that 500kb. The easiest way to perform the check is based would be based on the .jpg size.
Preferably, I could use this with other functions combined with the 'or' operator:
Contains(Email.Message.attachments[0].name, ".pdf") or
Contains(Email.Message.attachments[0].name, ".docx") or
Contains(Email.Message.attachments[0].name, ".doc") or
Contains(Email.Message.attachments[0].contentLength <whatever the syntax is for evaluating the size>)
And so I'm clear, there are a lot of email routing examples used in the forums using "Email.Message.attachments
[0].
whatever" and referencing [0] as the "first attachment". If there are more than one atachments, are subsequent Functions for each attachment required? (e.g. Email.Message.attachments[1]. Email.Message.attachments[2]. etc)
Thanks!
#ArchitectureandDesign#Routing(ACD/IVR)------------------------------
Jacob Anderson
EnerBank USA
------------------------------