How to get the last comment added by the agent onto notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 12:03 PM - edited 02-28-2024 12:04 PM
I have a use case where I am told to get the last comment added by an agent when rejecting the change request
I tried to use the below method using an email script but it doesn't fit my exact requirements -
Something like this -
28/02/2024 19:53:39 GMT - Shwetha Shenoy (Comments) reject and cancel
I only require the comments i.e. in the above scenario - reject and cancel and not the extra details i.e - 28/02/2024 19:53:39 GMT - Shwetha Shenoy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 12:08 PM
Hi @Shwetha Shenoy ,
Please modify syntax below like this:
var comment = current.comments.getJournalEntry(1).split('\n')[1]; template.print(comment);
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 12:14 PM - edited 02-29-2024 12:32 AM
Many Thanks @Sumanth16
But this doesn't work as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 12:50 PM
HI @Shwetha Shenoy ,
Can you share the script that you are trying?
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 12:24 AM
Hi @Sumanth16 ,
This doesn't work as expected,
For instance when we write the comments in this manner -
Rejected this change request
Check with you peers.
The end result is not as expected