Microsoft Dynamics CRM APIs uses the OAuth 2.0.
During credentials creation you would need to:
OAuth2
drop-down list Type
.Choose Auth Client
or create the new one.
For creating Auth Client you should specify following fields:Field name | Mandatory | Description |
---|---|---|
Name | true | your Auth Client’s name |
Client ID | true | your OAuth Client ID |
Client Secret | true | your OAuth Client Secret |
Authorization Endpoint | true | set: https://login.windows.net/common/oauth2/authorize?resource=https%3A%2F%2Forg1.crm4.dynamics.com%2F , where org1.crm4.dynamics.com it is URL of your MS Dynamic CRM organization |
Token Endpoint | true | set: https://login.windows.net/common/oauth2/token |
Name Your Credential
.Base URL
- required, field indicates what URL base needs to be used. Example https://org1.crm4.dynamics.com/api/data/v9.2
or https://org1.crm4.dynamics.com/api/data
(without version).API version
- optional, API version to use. Right format is vXX.XX
. By default, v9.2
Authenticate
button - the process would take you to Microsoft Dynamics to log-in and give permissions to the platform to access your service.Verify
button for verifying your credentials.Save
button for saving your credentials.Retrieve all the updated or created objects within a given time range.
Accounts
.Emit page
- all found values will be emitted in one array results
, and Emit individually
- each found object will be emitted individual.There is no Input Metadata.
Depends on Object Type
and Emit behavior
fields. If Emit behavior
field is equal to Emit page
- object with property results
that contains array of selected objects will be returned, if to Emit individually
, metadata for selected Object Type
will be returned.
Lookup a set of object by defined criteria list. Can be emitted in different way.
Contacts
.Emit all
, Emit page
or Emit individually
.filter
parameter of search. Be default, mapping configured to combine all search terms with and
logical operator, if you want to use another behavior - proceed to advanced mode. Example Search Criteria: [{ fieldName: 'createdon', operator: 'gt', fieldValue: '2022-08-28T14:27:45Z' }, { fieldName: '_primarycontactid_value', operator: 'eq', fieldValue: 'd1bf9a01-b056-e711-abaa-00155d701c02' }]
.If selected Emit Behavior
is Emit page
additionally fields will be added:
For Emit All
mode: An object, with key results
that has an array as its value.
For Emit Page
mode: An object with key results
that has an array as its value (if Page Size
> 0). Key totalCountOfMatchingResults
which contains the total number of results (not just on the page) which match the search criteria (if Page Size
= 0).
For Emit Individually
mode: Each object which fill the entire message.
Lookup a single object by a selected field.
Users
.Lookup Criteria Value
becomes optional.Allow criteria to be omitted
is selected): Value for unique search criteria in Lookup Criteria
configuration field.Object with result of lookup as value.
Updates (if record found) or creates a new object.
Accounts
.Entity ID
.Object Type
.Created or Updated object will be returned. Metadata are dynamically generated fields according to chosen Object Type
.
Delete a single object by its ID.
Accounts
.Executes custom request.
false
.GET
, POST
, PUT
, PATCH
, DELETE
.Read the large XML-only document located at endpoint/api/data/api_version/$metadata
and place the raw XML contents into either an attachment or into a JSON string.
There is no Input Metadata
Depends on selected Output
:
Lookup Object (at most one)
Action can be inaccurate because:
ownerid
will look like _ownerid_value
, so extra symbols could be added.Click here to learn more about the elastic.io iPaaS