Context variable value to be passed to post request

I have created a context variable in the script and that value i have to pass in the post call that I am making in the service node.
I am following the below syntax
{
“shortDescription” : “BI Issue”,
“description” : “The description related to BI {{context.BI_issue_descp}}”,
“userEmail” : “xyz.com
}
context.BI_issue_descp - this is my context variable in the script node

Hi @awasthividhu,

Yes, you can use the context variable initialized in the script node in any other node as {{context.varName}}

Let us know if you are facing any issue with it.

Regards,
Yoga Ramya.

I couldn’t use context variable(context.details) created in script node in other nodes.
I tried exists function while deciding the flow, it returns as not exists.
Can you help me in that. Please find the script code below:

context.details;
var x = context.Process.length;
for (var l = 0; l < x; l++)
{
if (context.entities.list_of_proceses == context.Process[l].Name)
{
context.details = {
“ProcessKey” : context.Process[l].Key
};
break;
}
}

Hi @manisha.pola,

We have verified the scenario by declaring a context variable in the script node and accessing it in the message node.
The scenario is working as expected.
image

image

image

Please try assigning a static value to the context variable and let us know.
We request you to kindly re-check the script.

Regards,
Yoga Ramya.