Skip to main content
Level 4
Jan 19, 2022 12:15 PM UTC
Solved

Variable being empty in alerts

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.
Krishnanunni
KrishnanunniAccepted solution
Level 4
Jan 20, 2022 3:20 AM UTC

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
Jan 20, 2022 3:20 AM UTC

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.

Translate