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 09:43 PM
Hi,
is Audit finding table having reference to Audit log?
if yes then when you click New the Audit log should auto-populate
how is the related list defined? is it OOB or defined relationship?
Regard
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 09:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2022 09:59 PM
try using current.addQuery('sys_id','IN',ids.toString());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2022 10:31 PM
Hi,
So what's your query?
Above script is not working fine?
OR
Audit log is not getting populated when clicking New button
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader