How to restrict category variable for each catalog item in the notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2025 10:37 PM
Hi Team
i am bringing all the variables in notification using below mail script
but the thing is i need to restrict category data variable that is hidden on form which is used for other purpose but the value in this category data variable is populating using category variable in the form with the help of on submit client script
in the notification i am getting two variables category and category data so please suggest how to restrict category data variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2025 10:45 PM
So you don't the category variable data to be printed in email?
if yes then update as this
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2025 11:02 PM
Thanks for quick response
but it is global change so cannot identify variable name
so i need solution to show variable data which is displayed on catalog request form and need to restrict all variable data which is hidden
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2025 11:16 PM
it's very difficult to determine if variable was hidden or not from email script which is server side.
variable shown/hidden is client side
The max you can do is if the value is not empty then print it
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2025 04:11 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader