How to capture RITM Varialble values in catalogtask worknotes

Jay N
Tera Contributor

Hi Team,

 

We have a requirement to capture form field values of user submitted RITM in catalog task worknotes.

Example: Post submission of RITM ticket, catalog task is assigned to particular group, only the group members can modify RITM values, when any group member changes the RITM value, post saving the form the old value and new value of that RITM form field should be logged in catalog task worknotes.

 

JayN_0-1738578948379.png

JayN_1-1738579011058.png

 

 

 

Thanks, Jay

 

 

1 ACCEPTED SOLUTION

Viraj Hudlikar
Tera Sage

Hello @Jay N 

Check this thread 
Solved: Update work notes if variable changes - ServiceNow Community

Solved: How to add the work notes when catalogue variables... - ServiceNow Community

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards

Viraj Hudlikar.

View solution in original post

2 REPLIES 2

Viraj Hudlikar
Tera Sage

Hello @Jay N 

Check this thread 
Solved: Update work notes if variable changes - ServiceNow Community

Solved: How to add the work notes when catalogue variables... - ServiceNow Community

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards

Viraj Hudlikar.

Ankur Bawiskar
Tera Patron
Tera Patron

@Jay N 

you can have before update business rule on sc_task table

Condition: current.request_item.cat_item.name == 'Your Catalog Item Name Here' && current.variables.changes()

Script:

1) get the previous variable value using previous.variables.variableName and current value as current.variables.variableName

2) then print the value in work notes

what script did you try and what's not working?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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