Hi,
I'm having a hard time setting up a web service with Dynamics 365 CRM.
In postman, I've been able to get the access token and perform the actions I need just fine, using these details:
URL: https://example.crm.dynamics.com (not the real URL)
Authentication type: OAuth 2.0
Client ID: ########## (obtained from Azure - app registration)
Client Secret Key: ############ (obtained from Azure - app registration)
Everything's set up correctly on the Azure side and the test connection went well.
But here's the problem: when I use the workflow designer to send a GET request to fetch a list of Accounts, I get hit with a 401 unauthorized error.
Here are the settings I'm using for the web service:
GET - https://example.crm.dynamics.com (not the real URL)
Route: api/data/v9.2/Accounts
Queries: No change
Encoding: No change
HTTP Header: No change
HTTP Body: No change
I'm not sure what's going wrong here. Any ideas?
Thanks in advance!