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?

Avatar

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

Avatar

Correct answer by
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

Avatar

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)

Avatar

Correct answer by
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...