Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

"Copy Change" not copying all the field values in SWO workspace

ramesh_r
Mega Sage

I am using OOB "Copy Change" to copy change but it's working in normal view but it's not copying all the field values when doing the same in the SWO workspace

ramesh_r_0-1707240538347.png

 

 

what will be the reason .?

 

And i have added the change properties also

 

ramesh_r_1-1707240476155.png

 

 

Below is the script iam using in the UI Action

var sowChangeUtils = new sn_sow_chg.SOWChangeUtils();
var url = current.getTableName() + ".do?sys_id=-1&sysparm_query=";
url += sowChangeUtils.copyChangeURL(current.getUniqueValue());
if (url) {
    action.setRedirectURL(url);
    action.setReturnURL(current);
}

 

ramesh_r_0-1707240418539.png

 

10 REPLIES 10

the highlighted fields are not copying in SOW 

 

ramesh_r_0-1707242223946.png

 

Seems it is bug, as last 2 are getting copied

LearnNGrowAtul_0-1707242480605.png

 

 

Log a case to Now Support. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

It is copying at my end, added another columns which you are trying. have you customized any field level ACL for these fields ? are you trying to test with admin role ? 

You are saying on native UI, you are able to successfully copy it ? is this personal instance or org instance ?

 

Thanks,

Harsh

 

@ramesh_r  Also I want to add one point, try to clear the cache ( using cache.do ) then test it again. if cache is causing this issue then from properties level you can check "Ignored cache" field as true. 

Definitely it should work. I don't think any issue with script. 

 

Thanks,

Harsh

@Harsh Vardhan 

 

I have tried this cache.do also still its not working