Configure Dynamics 365 and Azure Service Bus Integration (using OneWay relay and listener)

Posted TencentLee

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Configure Dynamics 365 and Azure Service Bus Integration (using OneWay relay and listener)相关的知识,希望对你有一定的参考价值。

Continuing our previous post

https://nishantrana.me/2017/03/22/configure-dynamics-365-and-azure-service-bus-integration-through-queue-and-queueclient/

Here we\'d add a new Shared Access Policy in the Azure Service Bus.

We can copy the connection string

Paste it in Service Endpoint registration dialog box of Plugin Registration tool

Change the designation type to OneWay, use https for the namespace address.

Register a step for creation of lead

Now we go and create a lead record, which triggers our plugin and creates a system job for it.

The system job fails as we do not have any active listener at the end point.

Now let us create a simple windows application which will act as listener.

Basically, we need to implement IServiceEndPointPlugin Interface, create a Service Host, define a new transportclientendpointbehaviour with shared access signature token provider, use WS2007HttpRelayBinding in our service end point.

Now run the listener application, and create a lead record in CRM.

We can see the break point hit in our listener application\' Execute method. Execute method is invoked whenever a message is posted to the service bus by Microsoft Dynamics 365.

System Job also shows the status as succeeded as we had our listener registered to the endpoint and running.

The helpful post

以上是关于Configure Dynamics 365 and Azure Service Bus Integration (using OneWay relay and listener)的主要内容,如果未能解决你的问题,请参考以下文章

Dynamics 365 App for Outlook 与 Dynamics 365 for Outlook(已被弃用)

将数据从 Azure DWH 复制到 Azure 中的 Dynamics 365

将 AD 属性与 Dynamics 365 系统用户同步

Dynamics 365插件开发

Dynamics CRM 2016 VS Dynamics 365 – 启用数据加密功能报错

自定义适用于手机和平板电脑的 Dynamics 365:显示的实体