- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 02:58 AM
Hello
I've created an extended table of the task table. Using UI action I create an incident.
It works but how can I add the incident number in the related list as on the attached example?
Thanks for your help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 03:23 AM
Are you saying you click the UI Action on your TEXP record and it creates an Incident, but the Incident doesn't reference the TEXP record at all? You should have a line in your UI Action that populates a reference on the Incident back to the TEXP record ... which at this point should be current.
something like...
whateverYourGlideRecordVariableToInsert.parent = current.sys_id;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 03:16 AM
Hi @Brigitte V ,
If you have your table reference to incident then configure related list, it will come by default.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 03:23 AM
Are you saying you click the UI Action on your TEXP record and it creates an Incident, but the Incident doesn't reference the TEXP record at all? You should have a line in your UI Action that populates a reference on the Incident back to the TEXP record ... which at this point should be current.
something like...
whateverYourGlideRecordVariableToInsert.parent = current.sys_id;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 03:33 AM
Thanks, it works.
I had set inc.parent = current.number
After changing to inc.parent = current.sys_id the field is updated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 03:44 AM
That'll definitely do it!
In case you weren't aware, the sys_id is the real unique identifier ServiceNow uses for any record in any table. Its what the reference field *really* stores. Anything else you see in a reference field (like number) is just a front end illusion so we don't have to deal with massive sys_ids with our puny great-ape brains.