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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Update calendar using Working Hours API - how to get calendarid of resource?

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I’m trying to sync shifts from an external system into Dynamics 365 and decided to use the Working Hours API via Power Automate.

The goal is to sync working hours for each Bookable Resource. However, I’ve noticed that Bookable Resource records don’t have calendarid filled, it's empty, which the Working Hours API requires.

My question is:

How can I retrieve or determine the calendarid for a Bookable Resource so that I can update its working hours?

Is there a related entity or supported approach to access this value?

 

Below is the CalendarEventInfo payload I’m using in the “Perform an unbound operation” action in Power Automate. As you can see, the CalendarId is currently missing:

{
  "CalendarId": "",
  "EntityLogicalName": "bookableresource",
  "TimeZoneCode": 85,
  "RulesAndRecurrences": [
    {
      "StartTime": "@{outputs('Compose_DayStart')}",
      "EndTime": "@{outputs('Compose_DayEnd')}",
      "DeleteExistingRules": true,
      "Rules": @{variables('varRules')}
    }
  ]
}
 
I have the same question (0)
  • Suggested answer
    PerezAguiar Profile Picture
    Microsoft Employee on at
    Hello!
     
    When you get the bookable resource on the API, one of the fields that should come populated is the CalendarID:
     
    From there, you can use this value to pass it on the parameters.  
     
    Regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
FSRon Profile Picture

FSRon 74

#2
James White Profile Picture

James White 25

#3
AT-28040446-0 Profile Picture

AT-28040446-0 20

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans