I am attempting to request an access token via Microsoft’s Graph API with the Web Request node in Automator and it’s failing saying that I am missing the “grant_type” parameter. I have already verified the (near) exact config works from a PowerShell Invoke-WebRequest command. Does anyone have any ideas? I’ve attached my config and the “Test Web Request” output/response.
![](https://uploads-us-west-2.insided.com/freshworks-en/attachment/b0559a5f-04de-43dd-9400-f18661c6c7c3.png)
{ "error": "invalid_request", "error_description": "AADSTS900144: The request body must contain the following parameter: 'grant_type'.\r\nTrace ID: \r\nCorrelation ID: \r\nTimestamp: 2023-03-02 20:56:54Z", "error_codes": , 900144 ], "timestamp": "2023-03-02 20:56:54Z", "trace_id": , "error_uri": "https://login.microsoftonline.com/error?code=900144"}