Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Struggling with Workspace UI Builder Presentational List opening records

Jorogumo4
Kilo Guru

Hey all! I've been learning a lot about UI Builder lately and have been running into a pretty big issue for myself.

 

I'm trying to create a tabbed worked space, and the tabs work fine however, I'm running into an issue with the Presentational List opening the record I click on. It just brings me to a blank page. 

 

image.png

 

image.png

 

I've tried using event "Cell Link Selected" and using the handler "Link to destination" and setting up the path. However, I cannot seem to find ANY way to get the sys_id of the record I am clicking on from that presentational list component, as unfortunately, it doesn't show up in components. I can however get the table information through my List Menu, as it is querying different tables and filtering it down. However that List Menu cannot give me specific record sys_id's. Should I just use a different type of list? I'm trying to utilize "Record List". Should I create some client state parameters? If I do that, how can I properly update the sys_id of the record when clicked to update the client state parameter so that I can call it through the "Link to destination"?

 

image.png

 

 

I've been going all over with this issue for a few hours today and cannot find anything on learning or community about how to properly manage this. Any ideas would be great. Thank you!


1 REPLY 1

tiriltaalesen
Tera Contributor

Hi @Jorogumo4,

 

This should have been configured for you, when you chose "Record List" in UI Builder. 

It's part of the preset and looks like this:

tiriltaalesen_0-1760970036204.png

 

If you decided not to use the preset, you could get the sys_id of the record with: 

@payload.cell.metadata.referenceSysId

 

Let me know if it works out for you 🙂 

 

Kind regards,

Tiril