How to add "send email action" in Flow Actions?

AbdurRahmanSnow
Giga Guru

Good afternoon. 
How to add the below if action from SubFlow "subflow2" in Flow Actions "act1"? I want that action to be in act1, instead of subflow2, as I want to use message pill, after the Output has come.

AbdurRahmanSnow_1-1743159739674.png

 

Below is the screenshot for act1 Action

AbdurRahmanSnow_2-1743159959975.png

 

 

1 ACCEPTED SOLUTION

@AbdurRahmanSnow 

within Action you can use Send Email but you cannot check if message is empty or not using IF logic.

So please use subflow only

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

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@AbdurRahmanSnow 

you can access the output from action in your subflow

what's your business requirement?

what you want to do with that message stored in action? where you want to use that?

it seems you are storing the JSON parser/REST Step message in that output variable?

at which step is that message variable configured ? Step 2 or Step 3(REST step)

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

Thank you for your reply, Ankur.

My requirement is, when the message from Output comes, I want to send an email notification. How can we do this?

@AbdurRahmanSnow 

in your subflow use IF logic & see the message output variable from action is empty or not

If not then use Send Email action in your subflow

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

@Ankur Bawiskar, I have already done that. You can see above. Instead of using if condition for email notification in Subflow, I want to use it in Actions itself.
My requirement, is if the message comes as "There are no licenses available on your account.", then an email notification should be sent to the requested for. How can we do this?

AbdurRahmanSnow_0-1743163302589.png