Get Non-Working Days from Orchestrator

I found a solution using the ‘Orchestrator HTTP Request’ activity.
Leave ‘JSONPayload’ blank and ‘Method’ as ‘GET’.
Set ‘RelativeEndpoint’ to “/odata/Settings/UiPath.Server.Configuration.OData.GetCalendar()”
Set ‘JSONResponse’ to your own choice of variable string.

If you write line (for development) the variable string with the output to the screen it should contain the list of ‘ExcludedDates’ which are the non-working days on orchestrator.
You then need to check if the date you are looking at is in the list or not and build it in to your program.

1 Like