Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Price List Line (7001) Filters Date

(0) ShareShare
ReportReport
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);

//
  • 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.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans