Copy Fields from change form to change task form

VijayKummamuru
Tera Expert

Hi,

 

I am trying to Copy some Fields  from change form to change task form , i have  seen OOB com.snc.change_request.copy.rl.change_task.attributes -List of attributes (comma-separated) from Change Task (change_task) related list that will be copied from the originating change.

 

But this is not working and also i am unable to find where this property has been used 

 

I wrote business rule and able to achieve the  requirement , but BR works only after saving the form i need to do this Onload .

 

@itsm @Snowdevloper @Dev 

1 ACCEPTED SOLUTION

@VijayKummamuru 

Thank you for marking my response as helpful.

The property logic should work fine.

The copy logic works when you copy 1 CHG to another CHG, it will copy all change tasks etc and it will then use that property to determine which fields to be copied from CHG to CHG Task.

Everything happens in this script include "ChangeUtilsSNC" and this script include uses that property

AnkurBawiskar_0-1743598475738.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @VijayKummamuru 

 

Here is this property :

AGLearnNGrow_0-1743595792769.png

Under change properties, when you say it's not working, is it not copying the date or giving an error? Did you check the "Copy Change" UI action?

*************************************************************************************************************
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]

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

@Dr Atul G- LNG fields should be copied to change task from from change request from . they are not getting copied and also no error 

Hi @VijayKummamuru 

I tried it in my PDI, and it's working fine as expected. Did you make any changes? Are you using the "Copy Change" UI action only? 

*************************************************************************************************************
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]

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

Ankur Bawiskar
Tera Patron
Tera Patron

@VijayKummamuru 

You already have business rule which on CHG when record is updated will copy the fields to CHG Task.

Why to have this performed when form loads?

not a good practice.

Ideally the copy of fields should happen when database transaction takes place.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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