Add conditions to node Move Email Attachments to Record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 08:13 AM - edited 11-13-2023 08:15 AM
Hello all,
I have an attachment problem with my Interaction flow.
So, when an email is recieved, the flow creates a new Interaction based on it.
To also add all attachmetns to the Interaction I'm using node 'Move Email Attachments to Record'.
The problem is that a lot of those attachments are small logos and images that I don't want to be added since it can confuse users.
So I wanted to add some conditions to at least prevent the really small files to be added, but I'm not sure how to do it. The node don't have any 'conditions' variable and the only other thing I can think of is a onAfter BR.
Any idea how to achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 08:21 AM
Hi @Nicol_s2
You can create a custom action to run the script that will return the attachment size. Use GlideRecord in the script and query the attachment table to check the size of the attachment.
NOTE: You have to pass the sys_id of the email record in the action as input to fetch the correct result in GlideRecord API.
Thanks!
Please mark it as correct and helpful if it works ✔️👍