Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Find the next open period of the calendar from the given date

Posted on by 425

Hi I have a requirement  where I will be provided the  date  I have to find whether it is open or not .

if it open then fine else  I have to   find the next open period in the calender.

ledgercalender.png

say in the calender 1\1\2019 is not opened then I  have to iterate to to the next open period and i need to bring the start date of the next immediate open period.

I have started a job like  something.

[View:/cfs-file/__key/communityserver-discussions-components-files/33/legdercalenderjob.txt]

Please guide how to proceed from here.

*This post is locked for comments

  • Verified answer
    Satish Panwar Profile Picture
    Satish Panwar 14,645 on at
    RE: Find the next open period of the calendar from the given date

    Hi Rohit,

    Based on fiscalCalendarPeriod status, if it's not open, get the month column, add + 1 and then try to retrieve the next month and then the status and continue till you get the open period status.

    Another option is for the fiscalCalendarPeriod, find the enddate, then add + 1 to it and then that's your next transdate and you can repeat your logic until you get the open period status.

    Thanks,

    Satish Panwar

    Please help verify answer(s) if they guide you in right direction so other community members can also benefit from your question with verified answer.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans