You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-ResponseHeadersVariable ResponseHeader and access it as variable via $ResponseHeader. See Get-Help Invoke-MgGraphRequest -Parameter ResponseHeadersVariable.
BTW, this parameter seems to populate only if the connection is successful, making it pretty useless.
For example, if I do two calls, one that works and one that doesn't, and and send the status code to a $statusCode variable, the second (failed) call will not return a status, so the variable will remain '200'.
Hello,
How do I get the status code and response header when invoking "Invoke-MgGraphRequest" without -Debug
Invoke-MgGraphRequest
The text was updated successfully, but these errors were encountered: