Hello Community,
I can get the access token from grant_type - authorization_code and call the BC Saas API to retrieve the data. but this method needs user interaction to get the highlighted code value using the below code.
login.microsoftonline.com/.../authorize
client_id=6731de76-14a6-49ae-97bc-6eba6914391e
&response_type=code
&redirect_uri=http%3A%2F%2Flocalhost%2Fmyapp%2F
&response_mode=query
&scope=openid%20offline_access%20https%3A%2F%2Fgraph.microsoft.com%2Fmail.read
&state=12345
and no 3rd party will accept this option to acquire the code value.

as an alternate option used client_credential to get the access token as below

but the access_token retrieved from client_credentials throws the below error, if I use this token to call the BC API
There is no proper documentation to move forward.
Any suggestion will be really helpful.