integrate dynamics crm to Azure event Hub

Adila mebrek 25 Reputation points
2024-06-27T14:05:36.4+00:00

Hi,

I would like to connect our Dynamics CRM to an Azure event hub, that create an event each time we create a changes in dynamic.

Can somone help me

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
635 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
646 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vinodh247 23,111 Reputation points MVP
    2024-09-22T11:26:41.3633333+00:00

    Hi Adila mebrek,

    Thanks for reaching out to Microsoft Q&A.

    To integrate Dynamics CRM with Azure Event Hub, you can use Azure Logic Apps or Power Automate with webhooks to capture changes in Dynamics CRM and send them to Azure Event Hub. Here’s a general approach:

    Try these steps:

    Create an Azure Event Hub:

    Set up an Event Hub in your Azure portal. This will act as the endpoint for receiving events from Dynamics CRM.

    Create a Webhook in Dynamics CRM:

    In Dynamics CRM, you can create a webhook that triggers on specific actions such as record creation, update, or deletion. To do this, navigate to the Power Platform Admin Center and register a webhook to capture events when changes occur in CRM entities.

    Build a Logic App or Power Automate Flow:

    Trigger: Use a Dynamics CRM trigger (ex., "When a record is created or modified") to detect changes in CRM.

    Action: Use the Send Event to Azure Event Hub connector in Logic Apps or Power Automate to publish the data from Dynamics CRM to Azure Event Hub.

    Configure Event Hub Producer:

    Set up the auth details and configuration in your logic app or flow to connect to the Event Hub. You will need the Event Hub connection string and the name of the event hub namespace.

    Test the Flow:

    Perform a test in Dynamics CRM by making a change (ex: creating a new record). This should trigger the webhook and send the event to Azure Event Hub.

    Alternate Approach:

    If more complex transformations or routing are needed, consider using Azure Functions in conjunction with the Event Hub to process events further, ex: converting them into specific formats before pushing them to other services.

    Let me know if you need more details on specific steps or configuration settings.

    Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.