Question about SN default copy change functionality

rita_m
Tera Guru

Hi all - 

 

I've been asked to replicate ServiceNow's default Copy Change ui action on another table. As such, of course, I need to analyse how it currently works.

 

var gotoURL = new GlideURL('CopyChangeRelatedLists.do');

 

Does anyone know where this GlideURL call in the UI Action is going? It's not a ui page, it's not a ui macro, it's not in "public pages", content management pages, service portal pages. Where else might it be?

 

Much thanks!
 
1 ACCEPTED SOLUTION

@rita_m , I would recommend opening a ticket in SN would be great, they will help you in a better way.

 

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain

View solution in original post

4 REPLIES 4

Shashank_Jain
Kilo Sage

@rita_m , 

How CopyChangeRelatedLists.do is used

  • It’s not directly visible in Studio.

  • It is an internal OOB processor written in Java.

  • Its job:

    1. Take the srcSysID (original change).

    2. Take the newSysID (the just-created record).

    3. Copy all the related lists (tasks, attachments, approvals, etc.) from old → new.

    4. Redirect you back to the new record form.

Think of it as a “bridge” step between creating the record and finishing the copy process.

 

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain

It looks like processors are no longer supported, correct?
https://snprotips.com/blog/2021/1/20/processors-srapis-and-how-to-run-a-script-and-redirect-a-user-f...

If I can get the code from that OOB processor, hopefully I can do what I need using the above method and a modified version.

Since you know it, can you copy the script here? Would you recommend just going to SN directly and opening a ticket to get the code?

Much thanks!

@rita_m , I would recommend opening a ticket in SN would be great, they will help you in a better way.

 

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain

@rita_m ,If this helps, please mark the solution as accepted that will be much appreciated

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain