CopyChange does not copy related list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2025 10:06 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2025 10:21 PM - edited ‎01-22-2025 10:24 PM
Have you kept the below things in mind while copying ?
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
Also verify properties that should be checked for copying change like below
com.snc.change_request.enable_copy
For more details check below
I hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2025 08:41 PM - edited ‎01-27-2025 09:19 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2025 09:11 PM
seems some issue when script ran
check this script include "ChangeUtilsSNC"
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2025 09:41 PM
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.
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------