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

Vishwa Pandya19
Mega Sage

Hello,

 

You can use the below flow:

VishwaPandya19_0-1715660085844.png

 

Step 1: Get attachment variable from the RITM record

VishwaPandya19_1-1715660144969.png

 

Step 2 : Get attachment associated to the RITM record

VishwaPandya19_2-1715660175710.png

 

Step 3: Look up the attachment in the attachment table

VishwaPandya19_3-1715660222121.png

Step 4: Send email via flow

VishwaPandya19_4-1715660242764.png

Step 5: Copy the attachment to the email record.

VishwaPandya19_5-1715660265984.png

 

 

If my answer helps you in any way please mark it as correct or helpful.

 

Hi Vishwa,

 

Thanks for your response. However, I'm using the notification type 'email' because I'm utilizing EventQueue in my flow.

 

Are there any other solutions for this?

Hello,

 

Could you share a screenshot on how you are sending the notification so i can replicate the same and give you a correct solution?

1. I called the event "event_trigger" in my flow designer, since we are using eventQueueScheduled, because we wanted to send the email based on the date & time the user provided in the catalog, thus the use of QueueScheduled.

symonflores_23_0-1715662714446.png

2. This email notification will send if event "event_trigger" was fired. The mail script "test", contains the body of the email.

symonflores_23_0-1715656283889.png

3. Back to the Service Catalog, I want this image attachment variable, to be attached together with the email, but not embedded. Outside the email body.

symonflores_23_1-1715662984312.png

Expected Outcome:

symonflores_23_2-1715663239391.png

I hope this clarifies everything.