Hi, I am trying to write Al code to check the out of office status of users. If it is on, then delegate approval. I have registered an app in Azure and have the tenant Id, client id and secret id.
Attached is the code to get the access token which isn't working.
I get the error message
Misused header name, 'Content-Type'. Make sure request headers are used with HttpRequestMessage, response headers with HttpResponseMessage, and content headers with HttpContent objects.
Any help much appreciated.