Microsoft Dynamics Authentication
Authenticates against Microsoft Dynamics 365 and returns an access token and ready-to-use authorization headers. Run it before any other Dynamics action that needs an authenticated request.
What it does
- Requests an access token from Microsoft using your tenant and application credentials.
- Supports both API version 1 and version 2 of the Microsoft token endpoint.
- Returns the access token and a pre-built
Authorization: Bearerheader for downstream calls. - Reports whether authentication succeeded through the
Successflag.
Inputs
| Name | Type | Description |
|---|---|---|
| Resource | Optional String | Microsoft Dynamics resource e.g. https://{domain}.operations.dynamics.com |
| Scope | Optional String | Microsoft Dynamics scope |
| Tenant ID | String | Microsoft Dynamics tenant id |
| API Version | String | Microsoft Dynamics API version Possible values: 1, 2. |
| Client ID | String (sensitive) | Microsoft Dynamics client id |
| Client Secret | String (sensitive) | Microsoft Dynamics client secret |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Whether successfully authenticated |
| Access Token | String | Access Token |
| Headers | Object | Authorization Bearer token |
Notes
- Use API version 1 for the classic
oauth2/tokenendpoint and version 2 for theoauth2/v2.0/tokenendpoint. ResourceandScopeare optional and only sent when provided; which one you need depends on the token endpoint version.