invalid 'in' operand within dynamic content condition | Community
Skip to main content
Level 2
October 22, 2021
Solved

invalid 'in' operand within dynamic content condition

  • October 22, 2021
  • 1 reply
  • 925 views

Hello community,

 

i created dynamic content on an email delivery and i would like to use the "IN" operand to check if the product ID is in a list but i received an error message

 

"Error while compiling script 'DM1091[htmlfr_beContent]' line 425: invalid 'in' operand "xxx"."

 

Here is the condition :

context.targetData.product_Id in ('xxx','yyy','zzz')

 

So the question is : is it allow to use IN operand on a dynamic content condition within an email delivery ?

 

Thanks

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 SatheeskannaK

Hi @malexandre,

 

I believe IN operand is not supported on ACS java script syntax. Refer the comparison operator section on below documentation: https://experienceleague.adobe.com/docs/campaign-standard/using/managing-processes-and-data/filtering-data/advanced-expression-editing.html?lang=en

 

Thanks!

1 reply

SatheeskannaK
Community Advisor
SatheeskannaKCommunity AdvisorAccepted solution
Community Advisor
October 22, 2021

Hi @malexandre,

 

I believe IN operand is not supported on ACS java script syntax. Refer the comparison operator section on below documentation: https://experienceleague.adobe.com/docs/campaign-standard/using/managing-processes-and-data/filtering-data/advanced-expression-editing.html?lang=en

 

Thanks!

Thanks, Sathees
Level 2
October 22, 2021

Thanks for your answer.

 

I already used the IN operand on a worflow with the advanced mode. That's why I though it was possible.