How to attach an attachment in Email Notifications

symonflores_23
Tera Guru

[Context] From the catalog item, the user will attach an image to the attachment variable. The image will then be attached to the email notification, rather than being embedded in the email body.

 

[Q] How do we attach the image file to the email? Can I achieve this without using a Business Rule?

 

symonflores_23_0-1715656283889.png

 

1 ACCEPTED SOLUTION

Yes, it does.

In that case you'll have to copy the image from the attachment variable to the actual item record, you can achieve this using the same flow that's triggered when a catalog item is submitted, you can add a copy attachment action just before firing the event to trigger the notification.

Regards,

Hope this helps!
BR.
Ishaan Shoor

View solution in original post

13 REPLIES 13

Yes, this image variable is present on the actual record. The user will attach the image they want to the variable 'v_others_image' in the service catalog. Then, we want to attach it together with our email script.

 

Hopefully, this clarifies everything.

Yes, it does.

In that case you'll have to copy the image from the attachment variable to the actual item record, you can achieve this using the same flow that's triggered when a catalog item is submitted, you can add a copy attachment action just before firing the event to trigger the notification.

Regards,

Hope this helps!
BR.
Ishaan Shoor

This works!

 

Thank you Ishaan.

Hi Ishaan,

 

How about limiting the attachment to only the file from the variable "v_others_image" to be sent in the email?

 

Using the Copy Attachment Action forces the notification email to include all attachments, including the ones we don't want to send.

 

Is there any way to achieve this?