Is there an "is included in" operator in Adobe Campaign Standard queries? | Community
Skip to main content
davidh2892249
Level 5
January 22, 2021
Solved

Is there an "is included in" operator in Adobe Campaign Standard queries?

  • January 22, 2021
  • 1 reply
  • 2933 views

Hi there,

 

I have a requirement where I regularly need to query profiles that have bought 1 of a range of products (SKUs)

 

Our data model has the following setup:

Profile (1) --> (n) Orders (1) --> (n) Order Items

 

There is "Product ID / SKU" column on the Order Items table.

 

I need to build a filter that returns profiles that have an order that contains at least 1 of the product codes (SKUs).

 

The screenshot below seems to be the way that it can be done. However, having to drag in "product code" attribute and configure an "OR" for each SKU is way too time consuming when I need to do this for many SKUs and build many similar filters.

 

Can anyone propose a solution?

* Is there a way of writing "is included in" expression and pasting a range of comma seperated SKUs like in Adobe Campaign Classic?

* FYI - I was looking to build a parameterised filter on the profile custom resource, but this doesn't seem to be possible when using data from a table more than 1 link away.

 

I hope someone has a solution.

 

 

 

 

 

 

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 kpottsadb

In the advanced expression editor within your query condition you can use an IN statement.  For example:

 

@productCode IN ('01203', '18756', '39428', 'etc', 'etc')

1 reply

kpottsadbAdobe EmployeeAccepted solution
Adobe Employee
January 27, 2021

In the advanced expression editor within your query condition you can use an IN statement.  For example:

 

@productCode IN ('01203', '18756', '39428', 'etc', 'etc')

Level 2
May 24, 2021
Where is that documented?