How to update new UI action in the related list and set the sys id to the current form in the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 12:17 AM - edited 08-06-2024 02:47 AM
I have created a new UI action in the related list, to create a new record on rm_story table. After creation, it should added to related story field on the parent table record. How to get the submitted sys_id in UI action to set on the parent table record. Please help me on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 03:12 AM
Did you check any OOB ui action for this?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 03:38 AM
Hi @Ankur Bawiskar ,
That script is from oob ui action but we need to set the created record sysid to parent table field. This is our customization.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 03:49 AM
if you are creating record on child table then you store the parent sysId in child record
why should it be reverse?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 06:37 AM
The actual requirement is a list type field records should show on the related list, then we can hide the field and follow only related list. so we are creating a new ui action to add a new record on the list type field