Flow Designer - How to use HTML text along with the script

Hari7
Kilo Guru

I am trying to send incident notifications using Flow Designer where I need to use only the latest comment on the notification and not to send all the comments.

If i add Additional Comments in the data pill, it sends all the comments in the notification. If I use the script instead of the data pill, I am able to send out the latest comment but the other variables/fields and text associated with that are not sent.

Data Pill:

find_real_file.png

Any idea how to get all the body along with the latest comment on the notification.

21 REPLIES 21

Jon23
Mega Sage

Hi Hari,

I would go with triggering an event as suggested by @sachin.namjoshi , however if you wanted to use the flow, you can create an action. The action has the trigger record as the input.

Your script step would then grab the journal entry and pass to an output. This output can then be used in your main flow, or just add an email step in the action:

find_real_file.png

Hi jwalton,

Could you please let me know what kind of action this is and how to get there. Yes, I want to use it within the flow and dont want to use the event option and json. We could have used scheduled job if thats the case. 

I want to test your approach. Pls let me know. 

To create an action, open flow designer and click new action:

find_real_file.png

Your input will be the incident trigger record:

find_real_file.png

Once your action is published it can be added to your main flow:

find_real_file.png

The output from the action can be used in the email as a data pill:

find_real_file.png

I created a new action and I dont see an option to call that action in the Incident Flow - Send Email in the body.

 

find_real_file.png

find_real_file.png

In your email body click the data pill and you should see your action output(s). These can be added to the body:

find_real_file.png