To get Sys ID of parent task.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2022 09:38 PM
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.
- Labels:
-
Studio

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2022 10:35 PM
When I click on New button the new record i.e Audit Finding (child) is not populating the Audit log (parent sys_id).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2022 10:48 PM
Hi,
since it's a defined relationship you need to update the New button to pass the parent sysId
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2022 10:56 PM
Could you please guide me on how to do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2022 10:58 PM
Hi,
You can create a UI Action for the same.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2022 05:04 AM
Could you please guide me on how to do that.