We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Work Notes Not Populating on Request Item via Mobile Agent – Catalog Task

mallepallys
Tera Contributor

I have a requirement on the Mobile Agent → Catalog Task record screen where we have an Add Comments Action item to enter work notes. I want to map the work notes entered here to the Request Item's work notes.

I am able to select the Request Item → Work Notes field in the mapping, but the data is not populating. Is this because Request Item is a Reference field on the sc_task table?

Has anyone faced a similar issue? Any suggestions on the solution would be greatly appreciated.

 

@David Ha  Could you please share your inputs here? 

 

 

1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @mallepallys ,

 

You can achieve it using Business Rule.

 

Business Rule: Create a before/after update business rule on sc_task to copy work notes to ritm:

  • Script:
    if(current.work_notes.changes() ) {
    var
    ritm = new GlideRecord('sc_req_item');if (ritm.get(current.request_item)) { ritm.work_notes = "Task Work Note added from Mobile: " + current.number + " | " + current.work_notes);
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti