can I use js variable in Query activity? | Community
Skip to main content
Level 2
October 25, 2021
Solved

can I use js variable in Query activity?

  • October 25, 2021
  • 1 reply
  • 1871 views

 

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

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 Andy123321

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-more-than-one-value-array-of-values-from-a/td-p/353515

 

1 reply

Krishnanunni
Level 4
October 25, 2021

Hi @andy123321 ,

 

Try defining the variable as instance variable like

instance.vars.str = "some string"

and set the following in query 

$(instance/vars/@str)
Andy123321AuthorAccepted solution
Level 2
October 26, 2021

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-more-than-one-value-array-of-values-from-a/td-p/353515