UI Builder - Retrieve latest value from a list / redirect to the freshly created HR Case

rafas_10
Tera Guru

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

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@rafas_10 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar ,

 

So currently I have a custom page on UI builder with the following:

rafas_10_0-1745405097097.png

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?

@rafas_10 

so once user submits where it is redirecting currently?

what's the expectation?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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?