Hello Team,
I want to get Bearer token with the help of authorization code and other parameters, so I am using Invoke Web Service call but it's throwing an error like below,
I have passed custom header parameters as a List because it has more than one,
below is the header parameter list,
grant_type:authorization_code
client_id:**8b**-***-4857-baed-***742***
redirect_uri=http://localhost/myapp/
scope=https://Ourdomain.onmicrosoft.com/ClientID/user_impersonation
code=%AUTHCODE%
Below is the Error :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Length Required</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Length Required</h2>
<hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>
</BODY></HTML>



Same call is working with Power automate cloud with HTTP action and it's returning bearer token also,
Please see attached below screen shot for same.
Please help me to sort out the issue , struggling from weeks.
Regards,
Nitin