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.

Display UI Action on related list with no records

matthew_magee1
Giga Guru

Hi all,

Is it possible to show a UI Action button on a related list if there are no records in the related list?

Scenario is when my related list comes back with 0 records, I need a UI Action (one of three) on the related list tab 'Purchase New', which will kick off a separate process.

Currently my UI Action only shows up when I have records in the related list.

If the New button can be displayed on a table w/ no records, I'd think I could do something similar w/ my own UI Action on a related list.

Thoughts?

 

1 ACCEPTED SOLUTION

Hi

just tested it out with a new blank UI Action:

find_real_file.png

Result is a Test button which can be used without selecting any records

find_real_file.png

After removing the sysverb_ prefix I have to select records first.

So the best is to start with a completely new UI Action and add more and more configurations to fit your needs. Do not reuse an existing one. There was a case where I had wasted several hours of searching and getting crazy until I found out, that I forgot to remove a role at UI Action tab "Requires Roles"

Kind regards
Maik

View solution in original post

5 REPLIES 5

Glad to help you!

Maik