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
2 hours 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
14m 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.
