Hi,
I have power automate approval flow which will store data in CDS. I have to fetch the data using REST API. For this, i created app in Azure Active Directory and added Dynamic CRM in api permissions.
Using postman, with Implicit Grant type, i am able to get the token and can see the data present in the table.
But,when i try to get a token using client secret and password, it is giving me bad request. Can someone help me if i am missing something
Method : POST
Endpoint : https://login.microsoftonline.com/**************/oauth2/token
Headers : Content-Type = application/json
Body : grant_type=client_credentials
client_id=********
client_secret=*******
resource=https://*****.crm4.dynamics.com
Below is the response:
{"error":"invalid_request","error_description":"AADSTS900144: The request body must contain the following parameter: 'grant_type'.\r\nTrace ID: f7f03465-9719-47bd-bbf0-dceba2afe201\r\nCorrelation ID: 423cbada-21f9-4d34-985a-5acc37f6ae19\r\nTimestamp: 2020-07-29 11:21:46Z","error_codes":[900144],"timestamp":"2020-07-29 11:21:46Z","trace_id":"f7f03465-9719-47bd-bbf0-dceba2afe201","correlation_id":"423cbada-21f9-4d34-985a-5acc37f6ae19","error_uri":"https://login.microsoftonline.com/error?code=900144"}

