Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

can I use js variable in Query activity?

Andy123321
Level 2
Level 2

Andy123321_0-1635167749215.png

Andy123321_1-1635167943721.png

Andy123321_2-1635167962217.png

 

I want use variable in query activity and the operator "is include in", but meet some error nonrecognition the variable.

1 Accepted Solution
Andy123321
Correct answer by
Level 2
Level 2

Hi @Krishnanunni 

thanks for your quick comments, but I got same error in my side.

I try to use $noescaping(vars/@idArray) and it work fine.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/how-do-we-pass-mor...

 

View solution in original post

2 Replies
Krishnanunni
Level 4
Level 4

Hi @Andy123321 ,

 

Try defining the variable as instance variable like

instance.vars.str = "some string"

and set the following in query 

$(instance/vars/@str)
Andy123321
Correct answer by
Level 2
Level 2

Hi @Krishnanunni 

thanks for your quick comments, but I got same error in my side.

I try to use $noescaping(vars/@idArray) and it work fine.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/how-do-we-pass-mor...

 

View solution in original post