Send an email with an attachment to an email address listed in an RITM variable

Josh102
Kilo Guru

Hello

 

In our New User Creation flow, I'd like to send a notification to an email address specified in the 'Personal_email' variable of the requested item, and I'd like to include the same attachment to this email each time it sends.

 

Historically I was able to achieve this by using a business rule to attach the attachment to the RITM on insert, then have the notification triggered by an event creation while 'Include attachments' is enabled on the notification. At some stage this functionality has stopped working.

 

I've tried to achieve the same thing with a triggered notification, however I don't know how to set the recipient to the value of the 'Personal_email' variable on the request without using the parameters from the event trigger.  

 

Any suggestions would be appreciated.

1 ACCEPTED SOLUTION

Josh102
Kilo Guru

I've managed to resolve this issue with a fairly robust solution that was easy to implement.

Link to solution video that I followed 

 

This solution allows you to add an attachment to a notification record and check a box that makes the notification always include the attachment on the notification record

View solution in original post

2 REPLIES 2

Amit Pandey
Kilo Sage

Hi @Josh102 

 

Can you try the following-

 

 email.addAddress('to', current.variables.personal_email);

 

Regards,

Amit 

Josh102
Kilo Guru

I've managed to resolve this issue with a fairly robust solution that was easy to implement.

Link to solution video that I followed 

 

This solution allows you to add an attachment to a notification record and check a box that makes the notification always include the attachment on the notification record