Skip to main content

Notifications

Microsoft Dynamics NAV forum
Answered

problem in filter

Posted on by 1,835

Dear Experts,

I have two different filter.

BinContent.SETFILTER("Bin Code",'%1..%2','101-ST-01-N001','101-ST-01-N002');

BinContent.SETFILTER("Bin Code",'%1..%2','102-ST01-R001-A','102-ST02-R001-A');

I want to add both filter in single line like below but it is not working:

BinContent.SETFILTER("Bin Code",'%1..%2..%3..%4','101-ST-01-N001','101-ST-01-N002','102-ST01-R001-A','102-ST02-R001-A');

Please give me idea to do that.

  • Verified answer
    Andrea Antoniazzi Profile Picture
    Andrea Antoniazzi 285 on at
    RE: problem in filter

    Hi,

    the correct filter is:

    101-ST-01-N001..101-ST-01-N002|102-ST01-R001-A..102-ST02-R001-A

    If you need to write in a procedure the filter should be:

    BinContent.SETFILTER("Bin Code",'%1..%2|%3..%4','101-ST-01-N001','101-ST-01-N002','102-ST01-R001-A','102-ST02-R001-A');

    Best regards

  • manish.yadav Profile Picture
    manish.yadav 1,835 on at
    RE: problem in filter

    Please close it. I have done it through

    BinContent.SETFILTER("Bin Code",'%1|%2|%3|%4','101-ST-01-N001','101-ST-01-N002','102-ST01-R001-A','102-ST02-R001-A');

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans