The OAuth endpoint URL.
Using Anypoint Studio to Configure Microsoft Dynamics 365 for Finance and Operations Connector 2.3 - Mule 4
Anypoint Studio (Studio) editors help you design and update your Mule applications, properties, and configuration files.
To add and configure a connector in Studio:
If you are new to configuring connectors in Studio, see Using Anypoint Studio to Configure a Connector. If, after reading this topic, you need additional information about the connector fields, see Microsoft Dynamics 365 for Finance and Operations Reference.
Create a Mule Project
In Studio, create a new Mule project in which to add and configure the connector:
-
In Studio, select File > New > Mule Project.
-
Enter a name for your Mule project and click Finish.
Add the Connector to Your Mule Project
Add Anypoint Connector for Microsoft Dynamics 365 for Finance and Operations (Microsoft Dynamics 365 for Operations Connector) to your Mule project to automatically populate the XML code with the connector’s namespace and schema location and add the required dependencies to the project’s pom.xml
file:
-
In the Mule Palette view, click (X) Search in Exchange.
-
In Add Dependencies to Project, type
dynamics finance
in the search field. -
Click the connector name in Available modules.
-
Click Add.
-
Click Finish.
Adding a connector to a Mule project in Studio does not make that connector available to other projects in your Studio workspace.
Configure a Source
A source initiates a flow when a specified condition is met. You can configure one of these sources to use with Microsoft Dynamics 365 for Operations Connector:
-
HTTP Listener
Initiates a flow each time it receives a request on the configured host and port -
Scheduler
+ Initiates a flow when a time-based condition is met
For example, to configure HTTP Listener, follow these steps:
-
In the Mule Palette view, select HTTP > Listener.
-
Drag Listener to the Studio canvas.
-
On the Listener configuration screen, optionally change the value of the Display Name field.
-
Specify a value for the Path field.
-
Click the plus sign (+) next to the Connector configuration field to configure a global element that can be used by all instances of the HTTP Listener in the app.
-
On the General tab, specify connection information.
-
On the TLS tab, optionally specify TLS information.
-
On the Advanced tab, optionally specify reconnection information, including a reconnection strategy.
-
Click Test Connection to confirm that Mule can connect with the specific server.
-
Click OK.
Add a Connector Operation to the Flow
When you add a connector operation to your flow, you immediately define a specific operation for that connector to perform.
To add an operation for Microsoft Dynamics 365 for Operations Connector, follow these steps:
-
In the Mule Palette view, select Dynamics 365 for Operations and then select the desired operation.
-
Drag the operation onto the Studio canvas and to the right of the input source.
Configure a Global Element for the Connector
When you configure a connector, it’s best to configure a global element that all instances of that connector in the app can use. Configuring a global element requires you to provide the authentication credentials the connector uses to access the target Microsoft Dynamics 365 system. Microsoft Dynamics 365 for Operations Connector supports OAuth 2.0 authentication.
To configure the global element for Microsoft Dynamics 365 for Operations Connector, follow these steps:
-
Select the name of the connector in the Studio canvas.
-
In the configuration screen for the operation, click the plus sign (+) next to the Connector configuration field to access the global element configuration fields.
-
On the General tab, enter the required values to configure OAuth 2:
Field Description Resource
Consumer Key
The app ID assigned to your app when you registered it with Azure Active Directory. You can find this in the Azure Portal (portal.azure.com). Click Active Directory, click the directory, choose the app, and click Configure.
Consumer Secret
The secret that you created in the app registration portal for your app. This should not be used in a native app, because client secrets cannot be reliably stored on devices. This is required for web apps and web APIs, which have the ability to store the client secret securely on the server side. You can find this in the Azure Portal (portal.azure.com). A client secret is a numerical value known only to your app and the Azure server, which enables access for your app.
Authorization URL
Tenant-specific OAuth2.0 endpoint in the format:
https://login.microsoftonline.com/{tenant}/oauth2/authorize
(follow instructions presented in the previous link for specific information on how to obtain the endpoint)Access token URL
Tenant-specific endpoint for requesting the access token in the format:
https://login.microsoftonline.com/{tenant}/oauth2/token
(follow instructions presented in the previous link for specific information on how to obtain the endpoint).Listener config
Name of the HTTP Listener instance created in the Anypoint Studio flow.
Callback path
The URL of your app, to which authentication responses can be sent and received by your app (follow instructions presented in the above link for specific information on how to obtain the endpoint).
Authorize path
The URL that triggers the OAuth mechanism.
External callback URL
Required only if the callback URL is not accessible directly (example: when using proxies) example format:
http://localhost:8081/callback
You can reference a configuration file that contains ANT-style property placeholders (recommended), or you can enter your authorization credentials in the global configuration properties. For information about the benefits of using property placeholders and how to configure them, see Anypoint Connector Configuration.
-
On the Advanced tab, optionally specify reconnection information, including a reconnection strategy.
-
Click Test Connection to confirm that Mule can connect with the specified server.
-
Click OK.