- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2025 01:17 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2025 01:53 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2025 01:53 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader