web
You’re offline. This is a read only version of the page.
close
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.
I have the same question (0)
  • Francisco Murtinheira Profile Picture
    on at

    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.

  • Fabio Corvino Profile Picture
    15 on at

    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"?  

  • Francisco Murtinheira Profile Picture
    on at

    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
    15 on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 49 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
#ManoVerse Profile Picture

#ManoVerse 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans