How to send attachment with email

Abhijit Das7
Tera Expert

Hi Everyone , 

 

I have requiirement, when an incident is resolved then, an email should be send to caller with pdf attachment. That pdf attachment should have short description and resolution notes.

 

Flow Designer : 

1. Trigger

1.PNG

 

2. Send Email:

2.PNG

3. Generate an attachment 

3.PNG

Generate an attachment is an action which I have created using this article : https://www.servicenow.com/community/developer-articles/generate-an-attachment-via-custom-flow-desig...

 

Generate an attachment :

4. Inputs

4.PNG

 

5 . Script

5.PNG6.PNG

6 . Output

7.PNG

 

Can anyone suggest what I am doing wrong? Because this flow is not working properly.

 

Thanks in advance

1 REPLY 1

Sujatha V M
Kilo Patron
Kilo Patron

@Abhijit Das7 If I had understood correctly, you want the attachment to be added to the email. 

 

You have designed "Send Email" as Step 1 and then generating the attachment. Doesn't it need to be reversed by passing the output of the action "Generate an attachment" to email? 

 

The reference link share for attachment, works for adding it to records. 

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.