Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

How to create a task with 7.5 hours as a day

Posted on by 215

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

  • Suggested answer
    Matthew Lazowski Profile Picture
    Matthew Lazowski 3,163 on at
    RE: How to create a task with 7.5 hours as a day

    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

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans