CopyChange does not copy related list

samadam
Kilo Sage

I am using copy change functionality and listed an m2m table in the list in 'com.snc.change_request.copy.related_lists'. I checked the acl and itil has access to create records still the related items from parent change are not getting copied. Is there anything else that I need to check? I cannot create even as admin.

8 REPLIES 8

Ct111
Giga Sage

Have you kept the below things in mind while copying ?

 

1. Note: You cannot copy change details from a standard change.
 

2. New change tasks can be created when a change is copied. If your change record has associated workflows that create change tasks, then these change tasks may not be copied because the workflow creates them. Only manually created tasks are copied, if the workflow when creating the task sets the created_from field on the change_task table to workflow. The created_from field has a default value of manual.

 

3. You can copy details of an active or canceled change request to a new change request.

 

 

If not I would request you to check below link for more details

 

LINK

 

Also verify  properties that should be checked for copying change like  below

 

com.snc.change_request.enable_copy

 

For more details check below

LINK

 

I hope this helps

The property is enabled and custom table has access to create to itil users. Another custom table worked. Not sure what else to check, Are there any restrictions on not allowing copy on m2m tables? This is a m2m table

See this in the logs: 

copyChangeRelatedLists: Could not copy related table u_Temp_table

@samadam 

seems some issue when script ran

check this script include "ChangeUtilsSNC"

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

Runjay Patel
Giga Sage

Hi @samadam ,

 

Just double check the change property. your related list should not be empty. If value there and still it is not working then you may raise HI ticket to get it resolve, as OOB functionality should work as expected.

RunjayPatel_0-1738042802631.png

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------