The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to add a variable set to a notification only when it is filled

Nicholas Hromya
Mega Guru

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".

 

1 REPLY 1

tejas1111
Tera Contributor

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.