Catalog Item: Show variable value in email only for selected Line of Business
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi All,
I am working on a Catalog Item in ServiceNow and need some help with displaying catalog variable values correctly in an email notification.
Requirement:
I have a Catalog Item with the following variables:
- Line of Business (Select Box): Enterprise, Facilities, Auto, PI, Claims, Life, Systems, Security
- System Services (Select Box): Red, Yellow, Green
Once the Catalog Item is requested, an email notification is triggered. In the email, I need to display a table like below:
Systems and Services Status
Line of Business Status
| Enterprise | |
| Facilities | |
| Auto | |
| PI | |
| Claims | |
| Life | |
| Systems | |
| Security |
Expected Behavior:
- Only the selected Line of Business should show the corresponding System Services status (e.g., ✅, 🟡, 🔴).
- All other Line of Business rows should remain empty.
- Example: If user selects Enterprise and Green, only Enterprise should show ✅ and all other rows should be blank.
Is there a recommended way to dynamically map catalog variable values like this?
Any guidance or sample script would be really helpful.
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @VojjalaS ,
Please try attaching this mail script if it works for you.
If this response was helpful, please consider marking it as Correct and Helpful. You may mark more than one reply as an accepted solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
it's an easy requirement.
what did you start with and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello Ankur,
I need help in the mail script creation for this scenario and how to map the variable from catalog item to email notification or any other recommended way to achieve this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
so what did you start and where are you stuck?
Unless you start you won't learn
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
