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')}
}
]
}

Report
All responses (
Answers (