Add information from request item variable into work notes on sc_req_item

sndev1099
Giga Expert

Hello, 

I need to push the below variable on a catalog item into the work notes on said item when it has been submitted, is this possible? 

Anything that is added to this box:

find_real_file.png

 

Needs to be pushed into the work notes on sc_req_item:

find_real_file.png

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

You can do this via a Run Script in the workflow that is running on this RITM, or an after update business rule on sc_req_item if this catalog item doesn't have a workflow.

current.work_notes = current.variables.rationale;

View solution in original post

4 REPLIES 4

Brad Bowman
Kilo Patron
Kilo Patron

You can do this via a Run Script in the workflow that is running on this RITM, or an after update business rule on sc_req_item if this catalog item doesn't have a workflow.

current.work_notes = current.variables.rationale;

Thanks Brad. My next question - Is there any way to strip the timestamp from the following so it would just display 'testing workflow'?

find_real_file.png

The variable contents are all that is being copied into the work note field, but since this has the type of Journal Input, it's adding the user and timestamp.  If you view the work notes on the RITM record, it's presented in a clear format, but the only way to not see this, especially on a list view, is to use a string field.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

either use workflow run script to set it or Before insert BR

Regards
Ankur

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