- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2025 04:42 AM
Hi,
In flow designer we are using Send Email action. in body we need to attach Additional Comments from RITM/SCTask. so I am using Data Pill Picker and selecting Additional Comments from RITM but i am also getting time stamp and username in body.
How to remove these details?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2025 05:32 AM
that's expected outcome.
you can use a flow variable and get the latest comments and then set the value using Set Flow Variables and use this script
Then use this flow variable in your "Send Email" action
var latestComments = fd_data.trigger.current.comments.getJournalEntry(1).match(/\n.+/gm).join("\n");
latestComments = latestComments.replace('\n','');
return latestComments;
Something like this
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2025 08:59 AM
Hope you are doing good.
Did my reply answer your question?
Would you mind closing your question by marking appropriate response as correct?
Members have invested their time and efforts in helping you.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2025 07:41 AM
Hi Ankur,
Sorry I haven't checked your message; I am on leave. I will try it and will get back to you