Walkthrough: Register an Azure-aware plug-in using the Plug-in Registration Tool
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
This walkthrough demonstrates how to register a service endpoint step using the Plug-in Registration Tool. Once configured, Microsoft Dynamics 365 or Microsoft Dynamics 365 (online) can post the execution context of the current operation to a Microsoft Azure solution endpoint. For this walkthrough, the step is registered to post the execution context of the CreateRequest message for an Account entity to the Microsoft Azure Service Bus.
The following prerequisites must be completed before you start this walkthrough:
Access to the Plug-in Registration Tool. You can find the tool’s executable file in the Tools\PluginRegistration folder of the SDK. Download the Microsoft Dynamics CRM SDK package.
Your Microsoft Dynamics 365 system user account must have the System Customizer or System Administrator role. For more information, see How role-based security can be used to control access to entities in Microsoft Dynamics 365.
Have access to a Microsoft Azure platform service namespace that is configured for ACS or SAS authorization, to which Microsoft Dynamics 365 will post a message.
If you are using Microsoft Dynamics 365, the server must be configured for Microsoft Azure integration according to the instructions in the topic Configure Azure integration with Microsoft Dynamics 365.
If you plan to use any other Azure messaging entity other than a queue, for example a relay, there must be a listener application actively listening to the specified solution endpoint for Microsoft Dynamics 365 to successfully post to the Microsoft Azure Service Bus. For more information, see Write a listener application for a Microsoft Azure solution.
A configured service endpoint with either ACS or SAS authorization is available in the target organization. More information: Walkthrough: Configure Microsoft Azure (ACS) for integration with Dynamics 365, Walkthrough: Configure Microsoft Azure (SAS) for integration with Dynamics 365.
Steps
This walkthrough contains the following steps:
Connect to the Microsoft Dynamics 365 server
Register a service endpoint step for an event
Test the endpoint registration
Connect to the Microsoft Dynamics 365 server
Follow the steps below to connect to the Microsoft Dynamics 365 server using the Plug-in Registration tool.
Run the Plug-in Registration tool.
Click Create New Connection.
In the Login dialog box, select the deployment type radio button corresponding to the Microsoft Dynamics 365 server you intend to register a service endpoint with. The On-premises radio button includes an IFD deployment and the Office 365 button is for the Microsoft Online Services provider of Microsoft Dynamics 365 (online).
Login form for an online deployment
Login form for an on-premises deployment
If you check Display list of available organizations, you are presented with a list of organizations that you belong to after you click Login. This enables you to choose the organization that you want to register the service endpoint with. Otherwise, your default organization is used.
Enter the indicated information about the server and login account, and then click Login.
Register a service endpoint step for an event
Follow the steps below to register a step for an event on the service endpoint.
Select an existing service endpoint in the tab of the tab of the target organization.
Navigate to the Register menu and click Register New Step.
Fill out the Register New Step dialog box for an account create event as shown in the following figure.
Click Register New Step.
Microsoft Dynamics 365 will now post the current message containing the execution context to the service bus whenever an account is created. The post is performed asynchronously and is not executed immediately.
Test the endpoint registration
After you register the endpoint you can test it. A listener must be running or a queue available on the target endpoint for the service bus post from the plug-in to happen.
Open the Microsoft Dynamics 365 web application for the same organization that you registered the service endpoint under.
Click the Create button , and then click Account.
Enter an account name, for example Adventure Works Cycle, into the Account Name field, and then click Save.
Wait about 10 minutes for the Microsoft Azure Service Bus post to occur.
Click Settings > System Jobs.
Open the system job that has the same name that you specified for your service endpoint. Check the status to see if the post was successful, is waiting, or failed.
You can now unregister the endpoint, if so desired, by selecting it in the tool’s tree view and click Unregister.
See Also
Azure extensions for Microsoft Dynamics 365
Azure integration with Microsoft Dynamics 365
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright