Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Filter Posting Date so it won't show Closed Accounting Period dates

(0) ShareShare
ReportReport
Posted on by 35

Hi, I'm creating a new page for General Ledger Entries but I want the posting date to be filtered so it doesn't show the Closed Account Period dates.

What is the best way for doing this?

  • Gelatina Profile Picture
    35 on at
    RE: Filter Posting Date so it won't show Closed Accounting Period dates

    Can you show me how can I apply this filter in my code? I've never done this before

  • Dallefeld Profile Picture
    173 User Group Leader on at
    RE: Filter Posting Date so it won't show Closed Accounting Period dates

    Filter for new fiscal year, get that date and subtract one day. For example New Fiscal year starts 1/1/2021, subtract 1 day and you have 12/31/2020 now filter <>C12312020 and continue to build your filter string as shown in prior response for each closing date

  • Gelatina Profile Picture
    35 on at
    RE: Filter Posting Date so it won't show Closed Accounting Period dates

    Hi Kim, thank you for your reply.

    I'm currently creating a new page on VSC which is showing the same information than the regular General Ledger page, however I need this page to not show the closed accounting period.

    I know I have to make a validation based on the AccountingPeriod.Closed field but I get a bit confused when it comes to using Accounting Period Table.

    How do you think I can accomplish this?

  • Dallefeld Profile Picture
    173 User Group Leader on at
    RE: Filter Posting Date so it won't show Closed Accounting Period dates

    Interesting question. I assume that you are displaying several years and want all closing dates filtered out, so I tried <>C* and of course, received an error. If I filter for <>C123119, C123119 entries are not displayed. I found that you have to specifically filter out each closing date <>c123118& >c123119&<>c123120. If you were writing code you could use Accounting Periods and determine the dates to filter out but just on a page, this was the only option that I found for you.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,933 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,801 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans