web
You’re offline. This is a read only version of the page.
close
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?

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

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

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    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

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 60 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 51

#3
Satyam Prakash Profile Picture

Satyam Prakash 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans