Can I use a encoded query as a condition in a UI action?

Simon Ciglia
Giga Guru

Hey experts

Can I use a encoded query as a condition in a UI action?
I want to use a dynamic encoded query.

 

Any help is appreciated

Thanks folks

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Yes, you can. Can you provide an example of what you are trying to do? We might be able to provide a solution for you.

I know I posted a video here a while ago that might help you get the base encoded query from a list filter if you haven't done it already. Here's a docs page to the same type of content:

Encoded query strings | ServiceNow Docs

View solution in original post

8 REPLIES 8

Can you provide an example of the query you are looking to use/build? The only rule of the Condition field is that it must evaluate to true. Encoded queries are most commonly used to return a list of records, not a true/false condition so while the two don't seem to necessarily line up, understanding your requirements would help determine what the best solution might be.

Hi Chuck, i have a similar requirement. The ui action has to be visible only for knowledge bases whose title starts with human (for hr). i added an encoded query titleSTARTSWITHhuman as a condition for the ui action, but doesn't work. Any help on this?

is that ui action available on knowledge base table ?

 

if yes can you add screenshot ? 

 

 

eg:  current.titleSTARTSWITHhuman