How to send worknote (if it is updated ) using business rule

String
Kilo Sage

Hi ,

am using business rule to capture the current work note as below code ,But requirement is when work note updated than only have to capture the work note and send to 3rd party tool  .please guide me 

current.work_notes.getJournalEntry(1)

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@String 

You can have condition in BR

current.work_notes.changes()

To get the latest work notes value use this

current.work_notes.getJournalEntry(1)

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

13 REPLIES 13

Pranav Bhagat
Kilo Sage

Hi

 

You can write a aysc Business rule(with conditions work notes changes) which will call your REST Message and then you use.

 

Work Notes

var notes = current.work_notes.getJournalEntry(-1);    // -1 for all the work notes value , 1 for latest work notes value

 

Comments

var notes = current.comments.getJournalEntry(-1);   

 

Regards

Pranav

Hi @Pranav Bhagat ,

Is any possibility to get the only  last updated worknote value ,So that i can compare with current worknote and validate in script !

So you are saying the latest work note or the one that was entered before ?

Means ...want the latest work note and one that was entered before both the values ,So i can compare and validate in script