I want to add a record to a related list via script

jonw1
Mega Expert

I have a variable (referencing: cmdb_ci_computer) on a catalog item, and I would like to add the referenced computer to the "affected CIs" related list on the requested item record.   I don't know how to refer to the related list in my script.

Specific use case ... after the last task in the requested item workflow is completed, I want to make the entry to the appropriate related list on the RITM being completed.

 

Thanks!

12 REPLIES 12

Oh! Okay!


Can you share your script with me?

jonw1
Mega Expert

Hi Priyanka,

Thank you for helping with this.   I actually haven't started writing yet.   I was referring to the script that you linked me to.

- Jon

Oh! No worries.

Let me know if you need any more help.

Happy scripting! 🙂