• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Blog
  • Power Platform
    • Power Apps
    • Power Automate
    • Power BI
    • Power Virtual Agents
  • Dynamics 365
  • Azure
  • About Me
Joe Gill Logo

Joe Gill

Microsoft MVP - Power Platform Consultant

Home » Power Platform » Dynamics 365 » Dynamics and Service Bus Queues

Dynamics and Service Bus Queues

19th June 2017 by Joe Gill Leave a Comment

Usually message queuing requires software development however in this blog post I am going to show you how events, such has creating an account, in Dynamics 365 can put messages on a queue without the need for any code. On top of that you can provide a third party with access to read messages from the queue from anywhere without configuring any firewalls or ports. This can be accomplished by using Azure Service Bus which is a cloud based messaging service which supports a number of different messaging techniques including queues.

The first thing you need to do is to create a queue in Service Bus from the Azure Portal as shown.

Dynamics and Service Bus Queues - Joe Gill

Once the queue is created select the Shared Access policies option to create a policy that will allow Dynamics to put messages on the queue.

Dynamics and Service Bus Queues - Joe Gill

 

We need to create policy with Send rights only

Dynamics and Service Bus Queues - Joe Gill

Once you have saved the SAS policy then copy the connection string to the clipboard as we will need it when we register the queue’s endpoint in Dynamics.

Dynamics and Service Bus Queues - Joe Gill

Now that your queue and SAS policy are created you need to use the Dynamics Plugin Registration tool to connect to your Dynamics enviroment. Once connected select the Register New Endpoint option and paste in the connection string.

Dynamics and Service Bus Queues - Joe Gill

Click Next and your Service Point Details are displayed having being populated from the connection string. You need to select which message format you want to use.  Json and Xml are the best formats at interopability between third party systems.

Dynamics and Service Bus Queues - Joe Gill

Now that the Service Bus endpoint is registered you can register a step so that an event in Dynamics will post details of the event onto the Service Bus message queue.  Note: You can only register the step’s Execution Mode as Asynchronus. In the example here the creation of an account will cause the execution contect of the event to be serialized in endpoint’s selected message format.

Dynamics and Service Bus Queues - Joe Gill

You can download a useful tool called the Service Bus Explorer from Github here  that allows you to view the messages on a service bus queue.   I have used it to view the message in Json format that was created when an account was created.

Dynamics and Service Bus Queues - Joe Gill

So here you have seen that in a number of easy steps how you can configure Dynamics to put event messages on a Service Bus message queue.  If you wanted a third party to read these messages you would create another SAS policy that has read rights to the queue and give this to your third party. As the Azure service bus runs in the cloud your third party can access the queue from anywhere by providing the SAS credentials.

 

 

Share This On Social:
  • Tweet
  • Dynamics and Service Bus Queues - Joe Gill

Filed Under: Azure, Dynamics 365 Tagged With: dynamics 365, Service Bus

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Popular Categories

  • Power Platform
    • Power Apps
    • Power Automate
    • Power Virtual Agents
  • Azure
    • Logic Apps
  • Dynamics 365
  • .NET
  • AI
  • SQL

More to See

Power Platform Requests – Base Request Capacity

17th December 2020 By Joe Gill

Power Automate Desktop

Power Automate Desktop – UI Flow

26th November 2020 By Joe Gill

Synapse Link for Dataverse – Metadata

5th July 2022 By Joe Gill

extract table from pdf and write as csv file using Power Automate Desktop

Extract Tables from a PDF using Power Automate Desktop

23rd May 2022 By Joe Gill

Tweets

Footer

Joe Gill

Microsoft Business Applications MVP – Power Platform, Dynamics 365 and Azure.

An architect with over twenty years experience designing and developing technology solutions. Specializing in the Microsoft technology stack including Power Platform, Dynamics 365 and Azure. Microsoft MVP Profile

Connect on Social

Useful Links

  • Home
  • Blog
  • About Joe Gill
  • Power Platform
  • Dynamics 365
  • Azure

Featured Posts

Power Platform Requests – Base Request Capacity

Power Automate Desktop – UI Flow

Power Fx Formula Columns in Dataverse

Synapse Link for Dataverse – Metadata

Extract Tables from a PDF using Power Automate Desktop

Dataverse Anonymization

© 2022 · Joe Gill