Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

Using operators in search criteria of a Fusion module

Avatar

Level 2

Hi!

 

We like to use the operators available under 'general function' when configuring 'Search Criteria' in Fusion. But we cannot seem to get it to work. Can one of you help us with our query?

 

1. In case we configure the search criteria like in this screenshot directly below, the scenario works.

 

RobSt_1-1747299346264.png

 

2. But as this is the same object and just to different values, we would like to combine this using the 'OR-statement' like seen in the screenshot directly below. However, this config in Fusion returns an error.

 

RobSt_0-1747299180237.png

 

Can some determine what we are doing wrong?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @RobSt 

 

use the "IN" operator: you can feed it a comma-separated list or an array

SveniX_0-1747776909251.png

 

View solution in original post

10 Replies

Avatar

Level 9

Hello @RobSt, the OR condition will not work because the API call made from the second method would be invalid. Example, the call would be /TTSK/search?DE:Parent - 3rd level=xyz111&templateTaskID=(abc101)or(def201), which is an invalid API call.

You will need to use the first method. Just think in terms of API call and you'll get an idea of what will work.

Avatar

Level 2

Really appreciate the swift response. And if this is how Fusion creates to API call, then this makes sense @_Manish_Singh.

 

I would expect this configuration would translate to an API call similar to this. But I am not sure of the Workfront API config can handle this:

  • /TTSK/search?DE:Parent - 3rd level=xyz111&templateTaskID=abc101&templateTaskID=def201, OR
  • /TTSK/search?DE:Parent - 3rd level=xyz111&templateTaskID=abc101,def201

Especially this last one seems to be working, looking at the Workfront API documentation (resource: https://developer.workfront.com/tasks.html#get-/task/-ID-).

 

We are not worried about two different values. But imagine we have multiple values. Hence, our query.

Thanks!

Avatar

Level 9

Sorry, I was wrong. I did a test on project search using program ID as the criteria. This is what I get:

The run was successful without an error:

_Manish_Singh_2-1747304683000.png

This is what the input bundle looks like. It always takes the first OR value from the condition, the second OR condition is not taken in the input.

_Manish_Singh_0-1747305142037.png

 

So even if it runs, it won't apply the second OR condition.

Avatar

Level 9

It is better to use custom API call module in this case rather than using the search module.

Example: PROJ/search?programID=57fe4e10005c08ca1a213f7237904c89&programID=57fe4e58005c10c5742c09aba18334d1

Avatar

Level 2

Thx again, Manish! So, is it safe to conclude adding operators available under 'general function' when configuring 'Search Criteria' in Fusion don't work as expected? If that is the case, I do agree. Creating a custom API call makes sense.

Avatar

Level 9

Yes, please proceed with the custom API module. It will be easier to manage in the future if additional criteria are added.

Avatar

Level 2

Thx Manish!

Avatar

Level 1

Hi @RobSt,

You're absolutely right — using the OR condition like that breaks the structure of the API call, making it invalid. I faced a similar issue recently while working with nested filters and had to stick with the first method too.

Thinking in terms of how the API parses parameters really helps. Structuring the request properly is key, especially when dealing with multiple conditions.

On a side note, while working on a filter system for a product range like (https://www.eliquidbase.co.uk/collections/disposable-vapes), I had to manage something similar — multiple attribute filters where only one method gave valid results.

Avatar

Correct answer by
Community Advisor

Hi @RobSt 

 

use the "IN" operator: you can feed it a comma-separated list or an array

SveniX_0-1747776909251.png

 

Avatar

Level 2

Thx a lot @Sven-iX , they array worked like a charm using the IN operator. 

Appreciated!