vars | Community
Skip to main content
davidl14970702
Level 4
January 13, 2018
Solved

vars

  • January 13, 2018
  • 1 reply
  • 1653 views

I am declaring vars.subName = 'lwFilmsGenComm'; in a JS activity in the first step of the workflow. I was hoping to call $(vars/@subname) down line within a query. But I keep getting this error

01/13/2018 3:11:02 PM XTK-170036 Unable to parse expression '[service/@name] = ''lwFilmsGenComm'''.

01/13/2018 3:11:02 PM Executing query 'Result' (step 'subscriptions exist such as internal name of service equal to '$(vars/@subName)'')

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 ShrawanSaxena-1

Hi David,

I have tested the same and it's working fine.

I have taken a JS activity as the first activity in workflow in which I have initialize a variable i.e vars.subName = 'newsletter';

In the second step, I have taken the query activity to query all the recipients who are subscribed to that service and workflow query running fine without any errors and i am getting the expected output.

Please note I have tested this in V6.

1 reply

ShrawanSaxena-1
Adobe Employee
ShrawanSaxena-1Adobe EmployeeAccepted solution
Adobe Employee
January 15, 2018

Hi David,

I have tested the same and it's working fine.

I have taken a JS activity as the first activity in workflow in which I have initialize a variable i.e vars.subName = 'newsletter';

In the second step, I have taken the query activity to query all the recipients who are subscribed to that service and workflow query running fine without any errors and i am getting the expected output.

Please note I have tested this in V6.