web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

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

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

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator 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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 433

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 67 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans