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

sachin_namjoshi
Kilo Patron
Kilo Patron

You need to create event in event queue so that this event is handled by notification like below

You can use script in your action to pass latest comments to event parameters.

 

getJournalEntry(1) will return latest comment for current record

 

find_real_file.png

Regards,

Sachin

My question is on the body of the notification. How to use some thing like

 

Dear caller_id.first_name;

Incident Number: xxxxxx

Short Description: xxxxx

Comments: Latest Comment only

 

I tried creating event record but not able to populate the body of the notification with script as well the text on it.

 

You will need to create JSON body with these field values and then pass as event.

 

var jsonStr = '[{'name' : 'one'}, {'name' : 'two'}, {'name' : 'three'}]';


gs.eventQueue('mytable.some_event', current, jsonStr, '');

 

Regards,

Sachin

Where this needs to be created. Also, there should be an easy way to configure this rather doing like this. The only limitation I am seeing here is unable to use the latest comment if not the Data Pill itself works fine.