Get condition from a Condition Builder from a Condition Field as a clean string

tdQ1w7xO6k
Giga Contributor

If you get the condition field from a table, you get a query string, with the ^OR and IN and sys_ids. Is it possible to get the text as it appears when you go to a .do page and look at the Condition builder, with 'is' instead of '=' and display names instead of ids and so on?

1 ACCEPTED SOLUTION
2 REPLIES 2

Shane41
ServiceNow Employee
ServiceNow Employee

Hi there,

This previous post may help you:

https://community.servicenow.com/community?id=community_question&sys_id=13768325db1cdbc01dcaf3231f96...

Hope this helps,

Shane

 

new GlideQueryBreadcrumbs().getReadableQuery(table_name, query);

You're a life-saver. I didn't know about that. Thank you.