Skip to main content

Notifications

Announcements

No record found.

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?

  • Suggested answer
    Bipin D365 Profile Picture
    28,961 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

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,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,760 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans