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.

To get Sys ID of parent task.

Mohd Kashif Bei
Kilo Contributor

I have created a new relative list and created a new relation between two modules.
My requirement is to fetch the sys_id of the parent task into the child task, whenever a new record of the child has been created.
What client script should I write, so that the Number of the parent task is populated automatically into the child task.

9 REPLIES 9

When I click on New button the new record i.e Audit Finding (child) is not populating the Audit log (parent sys_id).

Hi,

since it's a defined relationship you need to update the New button to pass the parent sysId

Regards
Ankur

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

Could you please guide me on how to do that.

Hi,

You can create a UI Action for the same.

Could you please guide me on how to do that.