How to use IBM App Connect with Microsoft Dynamics 365 for Sales

Microsoft Dynamics 365 for Sales is a customer relationship management solution that's designed to improve how you interact and do business with your customers.

Availability:
  • App Connect Enterprise as a Service connector
  • A local connector in a Designer instance of IBM App Connect in containers (Continuous Delivery release)Local connector in containers (Continuous Delivery release)
  • A local connector in a Designer instance of IBM App Connect in containers (Long Term Support)Local connector in containers (Long Term Support release)
  • A local connector in a Designer instance of IBM App Connect in containers (Support Cycle 2)Local connector in containers (Long Term Support Cycle-2 release)

Supported product and API versions

To find out which product and API versions this connector supports, see Detailed System Requirements on the IBM Support page.

Connecting to Microsoft Dynamics 365 for Sales

Complete the connection fields that you see in the App Connect Designer Connect > Applications and APIs page (previously the Catalog page) or flow editor. If necessary, work with your Microsoft Dynamics 365 for Sales administrator to obtain these values.

To connect App Connect to a Microsoft Dynamics 365 for Sales account, select your preferred authorization method from the following table:
Authorization method Applicability
Use the application's website to sign in (OAUTH 2.0 AUTH CODE) and App Connect Enterprise as a Service
Provide credentials for App Connect to use (BASIC OAUTH) App Connect Enterprise as a Service and App Connect in containers
Provide a username, password, and client credentials (OAUTH 2.0 PASSWORD) App Connect in containers and App Connect Enterprise as a Service
Then, specify values in the connection fields for your chosen authorization method:
Table 1. Connection fields for your chosen authorization method. Descriptions of the fields are given after this table.
Use the application's website to sign in (OAUTH 2.0 AUTH CODE) Provide credentials for App Connect to use (BASIC OAUTH) Provide a username, password, and client credentials (OAUTH 2.0 PASSWORD)
Service URL Service URL Service URL
API version API version API version
  Access token Client ID
  Refresh token Client secret
  Client ID Username
  Client secret Password
Connection field Description
Service URL URL that provides a direct sign-in to the Microsoft Dynamics 365 (online) service; for example, https://<organization>.crm.dynamics.com or https://<organization>.crm.microsoftdynamics.de.
Note: To know more about Service URL, see Discover the URL for your organization on the Microsoft Documentation page.
API version (optional) API version to be used; for example, v9.1.
Access token Access token generated from the Application client ID and Application client secret.
Refresh token Refresh token generated from the Application client ID and Application client secret.
Client ID Unique identifier generated after Microsoft Azure app registration to tie requests to specific projects.
Client secret Application client secret for the unique Application client ID created for a specific project.
Username The username to log in to your Microsoft Dynamics 365 for Sales account.
Password The password for the specified username.

To obtain the connection values for Microsoft Dynamics 365 for Sales, see Obtaining connection values for Microsoft Dynamics 365 for Sales.

To connect to a Microsoft Dynamics 365 for Sales endpoint from the App Connect Designer Applications and APIs page for the first time, expand Microsoft Dynamics 365 for Sales, then click Connect. For more information, see Managing accounts.

Tip:

Before you use the account that is created in App Connect in a flow, rename the account to something meaningful that helps you to identify it. To rename the account on the Applications and APIs page, select the account, open its options menu (⋮), then click Rename Account.

General considerations

Before you use App Connect Designer with Microsoft Dynamics 365 for Sales, take note of the following considerations:

  • (General consideration) You can see lists of the trigger events and actions that are available on the Applications and APIs page of the App Connect Designer.

    For some applications, the events and actions depend on the environment and whether the connector supports configurable events and dynamic discovery of actions. If the application supports configurable events, you see a Show more configurable events link under the events list. If the application supports dynamic discovery of actions, you see a Show more link under the actions list.

  • (General consideration) If you are using multiple accounts for an application, the set of fields that is displayed when you select an action for that application can vary for different accounts. In the flow editor, some applications always provide a curated set of static fields for an action. Other applications use dynamic discovery to retrieve the set of fields that are configured on the instance that you are connected to. For example, if you have two accounts for two instances of an application, the first account might use settings that are ready for immediate use. However, the second account might be configured with extra custom fields.

Events and actions

Microsoft Dynamics 365 for Sales events

These events are for changes in this application that trigger a flow to start completing the actions in the flow.

Note: In containers, only local accounts can be used for these events.

Show more configurable events: Events that are shown by default are pre-configured by using optimized connectivity. More items are available after you configure events that can trigger a flow by polling this application for new or updated objects. For more information about configurable events, see Configuring polled events to trigger flows.

Microsoft Dynamics 365 for Sales actions

Your flow completes these actions on this application.

Accounts
Create account
Retrieve accounts
Update account
Update or create account
Delete account
Contacts
Create contact
Retrieve contacts
Update contact
Update or create contact
Delete contact
Invoices
Create invoice
Retrieve invoices
Update invoice
Update or create invoice
Delete invoice
Leads
Create lead
Retrieve leads
Update lead
Update or create lead
Delete lead
Orders
Create order
Retrieve orders
Update order
Update or create order
Delete order
Products
Create product
Retrieve products
Update product
Update or create product
Delete product

More items are available when you have connected App Connect to Microsoft Dynamics 365 for Sales.

Examples

Dashboard tile for a template that uses Microsoft Dynamics 365 for Sales
Dashboard tile for a template that uses Microsoft Dynamics 365 for Sales
Dashboard tile for a template that uses Microsoft Dynamics 365 for Sales

Use templates to quickly create flows for Microsoft Dynamics 365 for Sales

Learn how to use App Connect templates to quickly create flows that perform actions on Microsoft Dynamics 365 for Sales. For example, open the Templates gallery, and then search for Microsoft Dynamics 365 for Sales.

Dashboard tile for a template that uses Microsoft Dynamics 365 for Sales