UI Builder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2023 12:41 AM
Hi,
I wanted to ask how to connect a button(component) To a table list in UI builder(servicenow) in AES.
for ex. If I click on a butto it should go to That List of records in that table.
Please help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 10:50 PM
Hi @Rashmi1111,
Button Component supports multiple events.
You can use the link to destination event and change the mode to script and add the below to redirect the page to the list layout of the table with particular filters also. This is specifically for redirecting to ITIL view of the table.
return {
route: null,
fields: null,
params: null,
redirect: null,
passiveNavigation: null,
title: null,
multiInstField: null,
targetRoute: null,
external: {
url:`${api.state.table}_list.do?sysparm_query=${api.state.query}` // control the tables and queries as required.
}
};
If you want, you can create a new page do display the lists and define the parameters like table, encodedQuery
Then you can again use the Link to Destination event to redirect it.
Let me know if it was helpful.
Thanks
Nootan