@Contains expression issue...please help....

Mike Kiser 1,531 Reputation points
2021-04-13T17:34:47.627+00:00

Hello! @Nasreen Akter @MartinJaffer-MSFT

As usual, I am having trouble with an Expression in a Filter activity...

I want to say if all employees with @item.Company = BCO, BED, BSC, and BNB proceed...all others filter out but I can't get the syntax correct....have worked on this for a while...

This is what I tried:

@or(contains(item().company,'BCO'),contains(item().company,'BED'), contains(item().company,'BSC'), contains(item().company,'BNB'))

But doesn't work....

Thanks!
Mike

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,599 questions
{count} votes

Accepted answer
  1. Nasreen Akter 10,751 Reputation points
    2021-04-13T17:43:20.957+00:00

    Hi @Mike Kiser ,

    The following expression might help. Thanks!

    @contains(createArray('BCO','BED','BSC','BNB'), item.Company)  
      
    

0 additional answers

Sort by: Most helpful