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.

Condition builder evaluator on the catalog

Nuno Oliveira
Mega Guru

Hi all,

 

Is there anyone that knows how evaluate a glide record against a condition builder by script on the catalog?

I mean, imagine that you receive a POST call and in the scripted rest you want to verify if there is a Catalog UI policy that sets a variable to mandatory, but this UI policy has a condition on the condition builder, something like Contact type = Phone. Do you know if it's possible to achieve this verification on a script? 

I already tried the glidefilter, however, the encoding on the catalog ui policies is a bit different from the normal ui policies. 

 

Thanks for the help.

 

Best regards

1 REPLY 1

Anantha Gowrara
Kilo Sage

Hi @Nuno Oliveira You can evaluate condition builder using Glide Evaluator API

https://developer.servicenow.com/dev.do#!/reference/api/vancouver/server_legacy/GlideEvaluatorAPI

AnanthaGowrara_0-1727203773786.png