Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Does the API's LastXDays take into consideration the Business Closure Days?

Posted on by 15

I have a custom application that is querying the last 7 days worth of records for an entity. The business is closed on public holidays and Saturdays. Assuming I have those days correctly setup in the system as business closure days when I run the query for records modified with the last 7 days, will I get only the non closure days or will it get all calendar days; including the Saturday.

If not, is there a way to enforce this behaviour?

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Does the API's LastXDays take into consideration the Business Closure Days?

    Hi,

    LastXDays in API does not take consideration of business closure setup. You will get all records including created/modified on holidays.

    It can not be enforced via OOB. You might have to write custom code to exclude business closure days records.

    Please mark my answer verified if i were helpful

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Does the API's LastXDays take into consideration the Business Closure Days?

    If youre using modifed on - last 7 days - you are going to get all days, not just business days/open days.

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans