How to add a variable set to a notification only when it is filled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello everyone,
I want to add the variable set "funded" to the notification "Email assigned to group (sc_task)". I only want this to show up when it is used in one catalog item.
Using the notification - Email assigned to group (sc_task)
We are using an email template that uses an email layout.
The email layout has ${notification:body}.
Thanks!
The variable set is "funded".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Nicholas Hromya ,
What you’re asking is possible, but it needs a little setup. Since the notification is global to all sc_task records, you’ll need to control when the funded variable set appears, otherwise it’ll show up for every catalog item. Here’s how you can approach
Identify the catalog item – Add a condition in the notification so it only fires when the parent request item (RITM) belongs to the specific catalog item. For example, use a condition like:
[Requested Item → Catalog Item] is [Your Item Name]
Reference the funded variable set – In your email template (or directly in the notification), pull the variable set data. You can use syntax like:
${sc_task.request_item.variables.funded}
or if it’s multiple variables, call them individually from the variable set.
Keep the layout intact – Since you’re using ${notification:body} inside an email layout, you can just extend the body content in the notification to include the funded variables when the condition matches. For example:
Task Details:
${task.short_description}
${task.description}
Funded Info:
${sc_task.request_item.variables.funded}
That way, only when the task belongs to that specific catalog item, the funded details will appear.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I presume when you mean add a condition, you mean under the "When to send" tab - conditions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @TejasSN_LogicX
Thank you for replying.
When you specify "
Add a condition in the notification so it only fires when the parent request item (RITM) belongs to the specific catalog item. For example, use a condition like:
[Requested Item → Catalog Item] is [Your Item Name]"
Do you mean to duplicate the existing notification, add the variable in the body, add this condition, then go back to the original notification and make this false?
I was under the impression, there would be a script that would only allow this variable to show up when it is not null. I am not good at this though.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hello,
${sc_task.request_item.variables.funded} did not work. I think it is because it is a variable SET, not just a variable.
I am not sure what to try next.
TIA
Nick