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

Announcements

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 51 Super User 2026 Season 1

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#3
Nagaraju_Matta Profile Picture

Nagaraju_Matta 50

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans