How to get catalog variable values in business rule ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 12:03 PM
Hi,
How to fetch catalog variable value in an after business rule.
I tried --> current.variables.<variable_name> but not working correctly.
Thanks,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2022 09:34 PM
Hi,
Is this happening for other RITMs as well?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2022 10:02 PM
Hi
Could you please share the script that you have written and also the screenshot of the Business Rule which you have created?
Thanks,
Kartik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 10:15 PM
Hi
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:
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