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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to create a task with 7.5 hours as a day

(0) ShareShare
ReportReport
Posted on by 217

Hello,

I am trying to create a project and tasks via the schedule API and Power Automate as documented here D365 Project Operations, Project for the web: Calling Schedule APIs from Power Automate without custom connectors (daytodaydynamics365.com) (thanks Antti) and that all works fine. The issue is that when I create a task the default day is 8 hours but we operate on 7.5 hours so if I create a task with 5 days duration then it will have an effort of 40 hours and end 6 days later, because the default calendar does have a 7.5 hour day and somehow tasks respect this when calculating the end date and time.

So if I create a task to start on the 3rd of January at 9am for 5 days it will have a duration of 5 days, effort of 40 hours and finish of 10th January 11:30am because it is assuming 8 hours for a day but the calendar is rightly being referenced to say that 40 working hours would take it into the next week.

Is there a nice way to deal with this? I can multiply my day duration by 0.9375 to get the correct duration but then the I get an error if the duration field on the Project Task entity has more than 2 decimal points! Also in tasks the duration ends up being 4.69 days rather than 5 because it is still calculating it as 8 hours.

Does this make sense and any idea where I go now?

This is a Lite deployment.

pastedimage1641461747397v1.png

I have the same question (0)
  • Suggested answer
    Matthew Lazowski Profile Picture
    3,163 on at

    You can compare with this one: community.dynamics.com/.../project-task-duration-not-respecting-calendar-template.

    Also worth taking a look at scheduling modes: community.dynamics.com/.../1198786.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans