UI Builder - Retrieve latest value from a list / redirect to the freshly created HR Case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 03:19 AM
Hi everyone,
I've got a catalog item component in UI Builder, which after submission is not redirecting correctly.
I want the user to submit the case and then it gets routed inside the freshly created case.
To do this I though to retrieve the latest value from the HR Case list and use the link to destination to open that same record, because the latest case will be the one he just created right?
How can I retrieve this value or if you have other approach, how can I do this?
Kind regards,
Sérgio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 03:25 AM
can you share the steps you followed to achieve the same?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 03:45 AM
Hi @Ankur Bawiskar ,
So currently I have a custom page on UI builder with the following:
As you can see, just a Catalog Item component. I want that, when I click submit it redirects me to the HR Case that will be created from that catalog item.
Is it clear?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 04:04 AM
so once user submits where it is redirecting currently?
what's the expectation?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 04:38 AM
It's redirecting to the last case but it's not the last case created, meaning:
Before you click submit , the last case is HRC007 for example, and once I click submit, it creates the case HRC008 and that's the case I want to redirect to, HRC008 but it's redirecting to the HRC007.
Any ideia?