samdieck
ServiceNow Employee
ServiceNow Employee

Hello All,

I'm creating this article for people that are starting out with the Workspace Experience application. There are a few useful components out of the box the one that will likely be used the most in a Workspace would be the List Component. In the UI Builder view you have many options one being the Filter builder where you can create a query using the usual filter options available in the standard view on a ServiceNow instance. That being said there is a bit to be desired as you can't dot walk fields or add an order to the list of records that will be displayed... at least not without a bit of tinkering:

  1. Navigate to the Workspace record where the list currently lives (if you haven't created a list in the page yet you would have to do so before starting these steps). You can get to it quickly by typing Workspace Experience in the Filter Navigator and clicking the All Workspaces module or you can type sys_aw_master_config.list into the Filter Navigator to bring up a list of Workspaces on your instance
  2. Open the Workspace record where the list you're trying to modify exists and navigate down to the Landing Pages related list
  3. Open the landing page record where the list lives and you will see a field named Composition; scroll through the JSON and pay attention for attributes labeled "elementLabel" and see if the value is the name of the List you've created
  4. In the object where the "elementLabel" exists there will be another attribute named "query" the value is stored as an Ecoded Query String there you can add any valid encoded query for the table that is targeted and voila you now have more control over how and what data is displayed in your List Component!

Hope this helps someone out there and feel free to add any questions below,

Sam

Comments
Jonathan Adlum
Kilo Contributor

that saved me alot of pain - thanks mate!

Jon

Version history
Last update:
‎12-08-2020 09:37 AM
Updated by: