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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

msdyn_SaveCalendar – Non-working hours remove breaks even when not overlapping

(0) ShareShare
ReportReport
Posted on by 28

Hi everyone,

I’m integrating an external shift/absence system with Dynamics 365 Field Service using Power Automate and the msdyn_SaveCalendar action, and I’ve hit a limitation I’d like to confirm.

Scenario

For a bookable resource, I’m creating calendar rules via msdyn_SaveCalendar:


  • Working hours

  • Breaks (WorkHourType = 1)

  • Non-working hours (WorkHourType = 2)


  •  

All rules:


  • Are on the same day

  • Do not overlap in time

  • Are sent in a single msdyn_SaveCalendar request (sometimes split into multiple RulesAndRecurrences)

  • Use valid ISO timestamps and supported fields only




  •  

Observed behavior

 

Whenever non-working hours are present:

 

  • Working hours are created correctly

  • Breaks are either removed or never persisted

  • This happens even when the break does not overlap the non-working period

  • Pre-splitting working hours does not change the outcome



  •  

The same behavior occurs consistently via API, even though the UI sometimes appears to handle this differently.

 

What works

 

  • Working hours + breaks → ✅

  • Working hours + non-working → ✅

  • Working hours + breaks + time off → ✅


  •  

What does not work

 

  • Working hours + breaks + non-working hours → ❌ (breaks are lost)

 

Question

 

Is this a known limitation / by-design behavior of msdyn_SaveCalendar?

 

Specifically:

 

  • Is it unsupported to have breaks and non-working hours on the same day when created via API?

  • Is Time Off the intended alternative when breaks must be preserved?

  • Or is there a supported pattern/API approach that allows all three to coexist?



  •  

Any confirmation or guidance from Microsoft or others who’ve implemented similar integrations would be greatly appreciated.

 

Thanks in advance.

I have the same question (0)

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 21 Super User 2025 Season 2

#2
TAHER Mehdi Profile Picture

TAHER Mehdi 14

#3
DC Dynamics 365 Profile Picture

DC Dynamics 365 6

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans