We had a requirement to automatically set the work hours of a Bookable Resource through Power Automate
To do this you will need to use the ‘Unbound Action’ called msdyn_applyworktemplateforresources
The action requires two values:
- calendarIds (This requires a JSON array of Bookable Resource calendarIds you wish to update the new work hours to)
- templateCalendarId (This requires the guid of the Bookable Resource which is related to the Work Template)
Below you can see that I am passing the ‘Calendar (Value)’ (Which is the Bookable Resources personal Calendar id) into the JSONString variable and converting it to to a JSON object, then passing the composed object into the calendarId variable inside of the action.
Also you can see that I am passing the ‘Calendar (Value)’ into the templateCalendarId variable. (This is a different calendarid as this is the id of the Bookable Resource which is related to the Work Template)
Hope this helps!