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 CRM (Archived)

Read an azure queue from Dynamics CRM

(0) ShareShare
ReportReport
Posted on by

Hi,

I'm working with Dynamics CRM (dynamics 365 trial) and an Azure queue. I'm using the Azure Service bus to communicate CRM with the queue.

I need to read the queue (on a scheduled basis) and perform actions within CRM depending on the content of the message (i.e. adding/removing Security roles to a list of users).

I'm already able to post messages to the queue with a step directly associated to the service endpoint via the Registration tool, or with a C# plugin.

BUT! I'm not sure how to create a listener or a recurring task that could be monitoring the queue for new messages, and how to do the actions from the message.

Any advice would be really appreciated.

Thanks!

-JaimeN

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    JohnAnonymous Profile Picture
    5,241 on at

    For this scenario I would look at an Azure Function. It's great for job scheduling or on demand processes. Here's a good post on how to connect to crm from an Azure Function.

    crmtipoftheday.com/.../connect-to-dynamics-365-in-azure-functions

  • Suggested answer
    tw0sh3ds Profile Picture
    5,600 on at

    Hi,

    +1 to what Martijn wrote, but also Azure WebJobs would do the job:

    docs.microsoft.com/.../web-sites-create-web-jobs

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans