Κοινή χρήση μέσω


Work with Dynamics 365 data in your Azure solution

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

An internal plug-in named ServiceBusPlugin is provided with Microsoft Dynamics 365 (online & on-premises). The plug-in contains the business logic to post the Microsoft Dynamics 365 message execution context to the Microsoft Azure Service Bus. To use this plug-in, you need to register a Microsoft Azure Service Bus solution endpoint and a step for the plug-in. The step defines what message and entity combination being processed by the core Microsoft Dynamics 365 operation should trigger the plug-in to execute. The ServiceBusPlugin can only be registered to run asynchronously. For more information, see Walkthrough: Register an Azure-aware plug-in using the Plug-in Registration Tool.

In addition, you can write a custom plug-in that includes the required lines of code to post to the service bus. The plug-in is registered in a similar way, except that it must be registered in the sandbox and run under partial trust. For more information on writing a custom plug-in that can post to the Microsoft Azure Service Bus, see Write a custom Azure-aware plug-in.

You can also write a custom workflow activity that can post the execution context to the service bus and include this activity in your workflows. Sample code for a custom Microsoft Azure-aware workflow activity is provided in the topic Sample: Azure aware custom workflow activity.

See Also

Walkthrough: Register a plug-in using the plug-in registration tool
Write a plug-in
Plug-in isolation, trusts, and statistics
Understand the data context passed to a plug-in
Register and Deploy Plug-Ins
Event execution pipeline
Azure extensions for Microsoft Dynamics 365
ServiceEndpoint entity messages and methods

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright