Hi,
I’m creating a Flow process that uses a custom connector to access an on-prem API using the data gateway. I’m on the first step process to get the access token, the POST method expects a raw body as follow:
grant_type=password&username=myusername123&password=mypassword123&scope=api
Unfortunately, the custom connector only allows me to define the body in a JSON format so my connector is failing because of the body:
{
"grant_type" : "password",
"username" : "myusername123",
"password" : "mypassword123",
"scope" : "api"
}
When testing the custom connector, there is an option that let’s me specify a raw body and the test is successful.
Custom Connector - JSON Body Failed 400:
Custom Connector - Raw Body Succeeded 200:
However, when I create my flow, I do not have the option to pass the body as raw:
Any idea how to pass a raw body to my custom connector?
Thank you,
Erick
I found a very simple fix, I just had to specify an empty string with double quotes (i.e. "") as the Body and that prevented Power Apps from converting my parameter (grant_type=password&username=myusername123&password=mypassword123&scope=api) to JSON.