Brad Tilton
ServiceNow Employee
ServiceNow Employee

 

Recently, Arnoud Kooi posted a really great article and video on Open an new UI Builder Tab from Workspace Record page Using Declarative Action. I would recommend reading and watching his post before going through this. His video/article was focused on adding a button to a form component/record page that then hooks into a UI Builder event. At the same time, someone asked me how they might do something like that from a list instead of a form, and while the steps are similar, they are slightly different. 

In the following video, I show how to:

Steps from the video:

Conclusion

Hopefully, this video and article helped you understand how declarative actions can connect to events in UI Builder. You may be asking, though: Why do I need to connect to an event in UI Builder?

Well, you can read more about events in the docs and in the UI Builder developer site course, but basically, events are the way that you can make components, data resources, and other things talk to each on the UI Builder page. You can respond to an event and access its payload via one of our OOB event handlers or with a page script. Events can pop open modals, route the user to a new page, kick off a query or mutation of data, run a page script, etc. Being able to connect your DA to an event opens up some possibilities when working with forms and lists in experiences.

Comments
khadija3
Tera Guru

Hello,

 

Is this supposed to work in OOB experiences ? I tried this in CSM/FSM Configurable experience and it's not working

aneta_koleva_sn
ServiceNow Employee
ServiceNow Employee

Hello @Brad Tilton I am currently following the instructions and it seems that the step for updating the actionConfigId sys id is not required anymore, isn't it? I am not able to see the record for actionConfigId in newly created experiences can you advise?

ChinchillaMoMo
Mega Guru

Hi @Brad Tilton , see that your example is to add this new list button to a custom list page, how about adding the button to default list page? Seems that default list page is not configurable so I guess is not possible to do so?

 

I'm looking into this because I have a requirement to create a list button in CSM workspace and when this button is clicked, it will create a new record with a field prefilled. I'm struggling to find a solution to this....

Brad Tilton
ServiceNow Employee
ServiceNow Employee

@ChinchillaMoMo you should be able to do this for a custom or oob list page. This guide may help you out: Declarative Actions in ServiceNow: The COMPLETE Guide 

ChinchillaMoMo
Mega Guru

Hi @Brad Tilton , I have tried to access the OOTB default list page, it said it has protection policy and can't be edited unfortunately...

Screenshot 2024-03-08 at 17.10.57.png

Version history
Last update:
‎07-22-2022 12:26 PM
Updated by: