Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

The Broadcast Pattern on cloud - best way to register plugin

(0) ShareShare
ReportReport
Posted on by 15
I'm using Dynamics 365 cloud.
I read the article "Common Data Integration Patterns - The Broadcast Pattern" and tried to apply this pattern.
I downloaded the solution of the ing Tempesta and tried to direct it as plugin.
I'm using the ilMerge package to create a single dll to register.
Unfortunately when I launch it generates error because it fails to load the Microsoft.ServiceBus assembly.
My question is:
Is the pattern described valid for Cloud D365 as well?
I'm wrong the way to register the plugin, that is, is there a better way to register the dependencies of a plugin than to use ilMerge?
Thank you early.
  • Fabio Corvino Profile Picture
    Fabio Corvino 15 on at
    RE: The Broadcast Pattern on cloud - best way to register plugin

    Sorry but the conversation took a wrong turn.

    I have expressly put in the title 365 Cloud and the suggested link is about on-premises.

    On-premises the problem does not exist because you can register the Microsoft.ServiceBus.dll in the GAC.

    Furthermore, the link on github.com/.../Microsoft.Azure.ServiceBus , obviously, contains only examples that use the Microsoft.ServiceBus.dll which is the one that you can't use in the 365 Cloud sandbox.

    My problem remains, but we can close the conversation by summing up that in D365 Cloud there is no way to use other packages besides Microsoft.CrmSdk.CoreAssemblies.

    Thank you.

  • RE: The Broadcast Pattern on cloud - best way to register plugin

    Hello,

    It seems like the only possibility for ASB is to send your messages via the IServiceEndpointNotificationService.

    docs.microsoft.com/.../azure-integration

    Have you had a look at all of the samples available on github, to see if any of them does what you need ?

    github.com/.../Microsoft.Azure.ServiceBus

  • Fabio Corvino Profile Picture
    Fabio Corvino 15 on at
    RE: The Broadcast Pattern on cloud - best way to register plugin

    Thank for the answer.

    Since ILMerge is not supported, is there another way to reference "Microsoft.Azure.ServiceBus" namespace inside a Plugin?

    Using "Microsoft.Azure.ServiceBus" namespace is possible to access to the "UserProperties" of the message and use Azure Service Bus Rules to redirect the message to the appropriate subscription.

    AFAIK, the only possibility to send a message to ASB from plugin is by "IServiceEndpointNotificationService" but this service does not allow to add "UserProperties" disabling the possibility to use the powerful feature of the ASB Rules.

    Can you suggest me some resource on either include some Microsoft namespace inside a plugin or on customize message headers using "IServiceEndpointNotificationService"?  

  • RE: The Broadcast Pattern on cloud - best way to register plugin

    Hello,

    Please keep in mind that using ILMerge is not supported in Dynamics 365. If the code that you are merging is source code, you should merge the code directly instead of using ILMerge.

    As far as your question about broadcasting goes, you can use your plugin to send data to an Azure Service Bus that is registered via Plugin Registration Tool, and then the Service Bus should be able to process your information and forward it to multiple CRM instances.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans