79126070

Date: 2024-10-25 14:17:49
Score: 0.5
Natty:
Report link

Found the answer! I removed the set-payload component and added a body to the http:request component:

<http:request config-ref="HTTP_Request_configuration" method="POST" path="/oauth2/v2.0/token">
    <http:body><![CDATA[#[output application/x-www-form-urlencoded --- {'client_id':'${outlook.client.id}','client_secret':'${outlook.client.secret}','grant_type': 'client_credentials','scope':'https://outlook.office365.com/.default'}]]]></http:body>
</http:request>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Norman Lynch