How can I check if any additional comments have been added to RITM in workflow script?

Apex Predator
Kilo Expert

Hello,

I have a catalog item. I can create RITM's for this catalog item. In my workflow, I would like to check if any additional comments have been added (not by the system but any other user) after the ticket is created in my workflow script.

If some comments are added, I want to take a different flow in my workflow?

These are the Additional Comments in the Notes that I am talking about.
find_real_file.png

I hope the question is clear.

Thank you

1 ACCEPTED SOLUTION

Elijah Aromola
Mega Sage

If it's the request item in the workflow the below code should work.

var comments = current.comments.getJournalEntry(1);
if(comments != "") {
   // comment was posted to current request item.
}

View solution in original post

2 REPLIES 2

Elijah Aromola
Mega Sage

If it's the request item in the workflow the below code should work.

var comments = current.comments.getJournalEntry(1);
if(comments != "") {
   // comment was posted to current request item.
}

How can we detect this in Business Rule? I have a script that needs to be executed when comments are added or changed.