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.

How to get catalog variable values in business rule ?

Gopi22
Tera Guru

Hi,

How to fetch catalog variable value in an after business rule. 

I tried --> current.variables.<variable_name>  but not working correctly. 

Thanks,

Gopi

17 REPLIES 17

Hi,

Is this happening for other RITMs as well?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Kartik Sethi
Tera Guru

Hi @Gopi 

 

Could you please share the script that you have written and also the screenshot of the Business Rule which you have created?

Thanks,

Kartik

Hi @Girisankar Gopinathannair Rajkumar 

Are you still facing issues?

 

If yes, could you please check the XML and see if you could see variables in the RITM as shown below:

find_real_file.png

If there are no variables then it is correct that you will get undefined when you try to fetch value using current.variables.variable_name.


Please mark my answer as correct if this solves your issues!

If it helped you in any way then please mark helpful!

 

Thanks and regards,

Kartik