About Copy Incident UI action and attachments

bonsai
Mega Sage

If you execute the Copy Incident UI action on a record with attachments, the attachments will not be copied until you save it.

It seems that the function "ajaxFunction_makeIncidentCopy" in the script include "IncidentUtils2SNC" also copies the attachments.

In which process is this function called?
It seems that the only UI action is to copy field values.

 

 

copy_inc.JPG

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@bonsai 

yes as per line 45 if the insert() is successful then only attachments will be copied

The OOTB UI action calls this "getIncidentQueryParams" function from Script include "IncidentUtils2" and this script include extends the OOTB Script Include "IncidentUtils2SNC"

It's platform level code and we don't know how actually it's called and how it works

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

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@bonsai 

yes as per line 45 if the insert() is successful then only attachments will be copied

The OOTB UI action calls this "getIncidentQueryParams" function from Script include "IncidentUtils2" and this script include extends the OOTB Script Include "IncidentUtils2SNC"

It's platform level code and we don't know how actually it's called and how it works

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