Variable being empty in alerts | Community
Skip to main content
Level 4
January 19, 2022
Solved

Variable being empty in alerts

  • January 19, 2022
  • 1 reply
  • 669 views

Hello,

 

We are using variables in our "Alert" nodes and it seems that they are working fine if the variable is within the xtk:workflow table. We use for example

<%= instance.label %>.

On the other side we would like to add some other data from other tables such as nms:operation. I have been trying to do that using <%= instance.operation.internalName %> without any success.

Is it because the tables are on two different dimensions? How can i solve this issue?

 

Many thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Krishnanunni

Hi @a_b_se ,

The instance object is created when you are executing a workflow. So you won't be able to call other schema details using instance object. It only allow you to print the instance name or define other instance variables. But if you want to get other schema values, you could use the JavaScript code activity. You can query any schema and fetch results you want. Then you can store these results in instance variables and use it in alert activities.

1 reply

Krishnanunni
KrishnanunniAccepted solution
Level 4
January 20, 2022

Hi @a_b_se ,

The instance object is created when you are executing a workflow. So you won't be able to call other schema details using instance object. It only allow you to print the instance name or define other instance variables. But if you want to get other schema values, you could use the JavaScript code activity. You can query any schema and fetch results you want. Then you can store these results in instance variables and use it in alert activities.