How to related automatically a change_request in a ritm with a workflow script

scl_amorale
Tera Expert

I need the chg in this image view. 

scl_amorale_1-1741641913112.png

 

 

 

2 ACCEPTED SOLUTIONS

Thank you my friend, the script it' s working right now.

View solution in original post

Thank you, the script it' s working right now.

View solution in original post

9 REPLIES 9

@scl_amorale 

update line 11 as this

grChange.get(current.variables.u_chg_relacionado)

line 16 should work and set the parent field on CHG and the RITM should start showing in related list of CHG

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

Thank you my friend, the script it' s working right now.

@scl_amorale 

Seems you marked your own response as correct.

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

Hi @scl_amorale,

Please use:

grChange.get(current.variables.u_chg_relacionado)


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.

Thank you, the script it' s working right now.