Notification - Most recent comment

MStritt
Tera Guru

I'm creating a notification. The notification will be sent to the Assigned To person whenever the customer makes an update to the case via Portal. I would like to include in the email, the most recent comment made by the customer that triggers the notification. I can add additional comments (comments) in the email, but it includes ALL additional comments on the case. Is it possible to include just the most recent comment\update made by the customer?

6 REPLIES 6

Hello Not sure if you have seen my solution it will work Thanks

yasuhirotakahas
ServiceNow Employee
ServiceNow Employee

A case record has Additional Comments (comments) field, however,  the field become empty right after submitting, because a value of comment is transferred to Journal.
So the latest comment must be captured right before submitting.

  1. Create a business rule
    1. Advanced: true
    2. Before Update
    3. Write a code to push a predefined event
      1. Parm1: sys_id
      2. Parm2: Additional comments (comments)
  2. Create a notification triggered by the event
    1. Get the value of the latest comments from Parm2
    2. Get other values, querying the case by sys_id