Flow designer variable inside Email Notification

TashfiqueH
Tera Contributor

Hi 

 

I am trying to print out the variable from flow designer in my email notification.  I have tried 3 different ways I found online, but none seems to work.  The last picture is from the preview email. 

 

Email is able to trigger in the email log, but the variable iset_number1 does not. 

 

Kindly assist. 

 

TashfiqueH_0-1739437434117.png

TashfiqueH_1-1739437457247.png

 

This is a snippet from my email preview.

 

TashfiqueH_2-1739437545576.png

 

3 ACCEPTED SOLUTIONS

Hi @TashfiqueH ,

 

It seems like the syntax you've written is not correct. Please see my attached screenshot and use the same. You can also use the "fields" icon on the right to select the variables instead of writing manually.

 

Please accept my solution if it helps you.

Regards,

Vasanth.

 

Vasanth001_0-1739440953648.png

 

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@TashfiqueH 

you are setting flow variables and then using Send Notification.

You cannot directly use those flow variables in Email notification body, that's not how it works.

2 ways to handle

1) Use Flow 'Send Email" action and then you can use the Flow variables

OR

2) better you use Notification on that Import Set Table with condition as State Changes to Processed

Then use email body to add your content.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

GopikaP
Mega Sage

Hi @TashfiqueH , I understood that you need to pass the flow variables to your email body, one thing you can do is to use the 'send email' action, or

If you just need to retrieve that one flow variable, then create an event and then fire that email notification by firing that event through flow, so you can pass that flow variable through event parameter. You can get that flow variable in the body using - '${event.parm1}'.

View solution in original post

7 REPLIES 7

GopikaPraka
Tera Contributor

Hi, could you send a screenshot of the email notification—either the message HTML or where you're trying to retrieve this variable value?

Vasanth001
Tera Expert

Hi @TashfiqueH ,

 

Can you please send me your Notification "What it will contain" image. Coz your flow looks good to me.

 

Regards,

Vasanth.

 

Regards,

Vasanth

TashfiqueH_0-1739440701861.png

here you go. Thank you for your reply

Hi @TashfiqueH ,

 

It seems like the syntax you've written is not correct. Please see my attached screenshot and use the same. You can also use the "fields" icon on the right to select the variables instead of writing manually.

 

Please accept my solution if it helps you.

Regards,

Vasanth.

 

Vasanth001_0-1739440953648.png