can I use js variable in Query activity? | Community
Skip to main content
Level 2
Oct 25, 2021 1:19 PM UTC
Solved

can I use js variable in Query activity?

 

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.
Andy123321Accepted solution
Level 2
Oct 26, 2021 1:23 AM UTC

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

 

2 replies

Krishnanunni
Level 4
Oct 25, 2021 1:38 PM UTC

Hi @andy123321 ,

 

Try defining the variable as instance variable like

instance.vars.str = "some string"

and set the following in query 

$(instance/vars/@str)
Translate
Andy123321AuthorAccepted solution
Level 2
Oct 26, 2021 1:23 AM UTC

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

 

Translate