Skip to main content

Notifications

Business Central forum
Suggested answer

Price List Line (7001) Filters Date

Posted on by 74
Hello everyone, I need to set up a filter for the start date and end date in the purchase price list.
- The start date is equal to or less than the current date (today), and the end date can be empty.
- The end date is equal to or greater than the current date (today), and the start date can be empty.
- The start date is equal to or less than the current date (today), and the end date can have a real date.
- The end date is equal to or greater than the current date (today), and the start date can have a real date.
- Both start and end dates can be empty and still meet the desired date filter.
I hope my explanation is not too complicated.
Can someone please help me with this?

PriceListLine.SetRange(/Starting Date/, WorkDateFilter, 0D);

//
Categories:
  • Suggested answer
    Price List Line (7001) Filters Date
    Hello, this is what I came up with to get the result; I didn't use the filter for the dates, but I did include it in the conditions within the repeat.

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 227,979 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans