Flow Designer - How to use HTML text along with the script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2020 11:47 AM
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:
Any idea how to get all the body along with the latest comment on the notification.
- Labels:
-
Scripting and Coding
-
Studio

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2020 01:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2020 01:49 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2020 02:04 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2020 02:10 PM
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.