Solutons Lounge

how to call instance.vars.xxxx in node expr queryd… – Adobe Experience League Community


Hi there, 

 

I have several JavaScript activities that retrieve the total record count based on split conditions. Now, I’ve added another JavaScript activity to extract the segment code from the split activity. Additionally, I’m attempting to access the instance.vars variable within this new JavaScript activity, which was previously defined in the split condition JavaScript activity. However, an error occurs stating that the “Unable to parse the expression”

1st Js Activity: instance.vars.countOfSegment_RecipientEmail =  vars.recCount

2nd JS Activity : <node expr={“+instance.vars.RecipientEmail+”}  alias=”@Segment”/> –

The 2nd JS activity is throwing an error

 

I have implemented two split activities where I’ve defined instance.vars.xxxx in both. Now, I aim to retrieve and display these instances.vars declarations in a table format of an alert activity as shown below:

 

Please suggest if there’s a more effective method to accomplish this task, or how I can reference instance.vars.xxx in a node expression of query def



Source link

Exit mobile version