Sitecore + Microsoft Dynamics 365
Connect Sitecore and Microsoft Dynamics 365 to Unify Marketing and CRM Data
Automate data flows between your digital experience platform and CRM to deliver personalized customer journeys at scale.


Why integrate Sitecore and Microsoft Dynamics 365?
Sitecore powers personalized digital experiences while Microsoft Dynamics 365 manages the full customer relationship lifecycle, from leads to loyal accounts. Together, they can be a real revenue engine — but only when they're sharing data in real time. Integrating Sitecore with Dynamics 365 closes the gap between web engagement signals and CRM records, giving sales and marketing teams a unified, actionable view of every customer.
Automate & integrate Sitecore & Microsoft Dynamics 365
Use case
Sync Sitecore Form Submissions to Dynamics 365 Leads
When a visitor completes a form on a Sitecore-powered site — a demo request, whitepaper download, or contact inquiry — their data is automatically created or updated as a Lead or Contact record in Dynamics 365. Sales teams get instant visibility into inbound interest with no manual data entry.
Use case
Personalize Sitecore Content Based on Dynamics 365 CRM Data
Pull account, contact, or lifecycle stage data from Dynamics 365 and use it to drive Sitecore personalization rules, so returning customers and known prospects see content matched to their industry, deal stage, or purchase history. This closed-loop approach improves engagement and conversion rates.
Use case
Update Dynamics 365 Opportunities with Sitecore Engagement Analytics
When a contact in Dynamics 365 visits key pages, downloads assets, or hits a behavioral engagement threshold in Sitecore, the associated Opportunity record is updated automatically with those signals. Sales reps get real-time intelligence about prospect intent without leaving their CRM.
Use case
Trigger Dynamics 365 Marketing Journeys from Sitecore Events
Use Sitecore behavioral triggers — abandoned pages, product comparisons, repeated category visits — to enroll contacts into targeted Dynamics 365 Marketing journeys. This connects on-site behavior to structured CRM nurture flows without manual segmentation.
Use case
Sync Dynamics 365 Customer Segments to Sitecore for Targeted Experiences
Automatically push CRM-defined audience segments, account tiers, or lifecycle stages from Dynamics 365 into Sitecore to power segment-specific content rules. Marketing teams keep a single source of truth in Dynamics 365 while Sitecore reflects those classifications dynamically.
Use case
Create Dynamics 365 Cases from Sitecore Support Interactions
When a site visitor submits a support request, chatbot inquiry, or service form through a Sitecore experience, a corresponding Case record is automatically created in Dynamics 365 Customer Service. Service teams can act immediately, and customers get timely, trackable resolutions.
Use case
Automate Contact Record Updates Across Both Platforms
Keep contact and account records synchronized bidirectionally between Sitecore and Dynamics 365, so profile updates in either system — preference changes, email opt-outs, address updates — are reflected in both without manual reconciliation.
Get started with Sitecore & Microsoft Dynamics 365 integration today
Sitecore & Microsoft Dynamics 365 Challenges
What challenges are there when working with Sitecore & Microsoft Dynamics 365 and how will using Tray.ai help?
Challenge
Complex Data Model Differences Between Platforms
Sitecore's Experience Database (xDB) and Dynamics 365 CRM use fundamentally different data models. Sitecore tracks behavioral interactions and facets; Dynamics 365 structures data around entities like Leads, Contacts, Opportunities, and Accounts. Mapping between these models without losing context or creating duplicate records is a real technical challenge.
How Tray.ai Can Help:
tray.ai has a visual data mapper with transformation logic that lets teams define precise field-level mappings between Sitecore's xDB profile facets and Dynamics 365 entity attributes. Conditional logic and deduplication steps route data to the correct entity type without creating duplicates, and custom transformations handle format mismatches like date fields, boolean flags, and picklist values.
Challenge
Maintaining Real-Time Sync Without Overloading APIs
Both Sitecore and Dynamics 365 have API rate limits and throttling policies that can cause data loss or delays when high volumes of events — form submissions during a campaign launch, for instance — are processed simultaneously. Naive integrations risk hitting these limits and silently dropping records.
How Tray.ai Can Help:
tray.ai's built-in retry logic, queue management, and rate limit handling automatically throttle requests to stay within each platform's API constraints. Exponential backoff and error handling ensure no records are lost during traffic spikes, and tray.ai's workflow monitoring gives you full visibility into any failed steps so they can be replayed without data loss.
Challenge
Handling GDPR and Consent Propagation Across Both Systems
When a contact updates their communication preferences or withdraws consent in one system, that change has to reach the other immediately to stay compliant with GDPR and other data privacy regulations. Manual or delayed sync between Sitecore and Dynamics 365 creates real legal and reputational exposure.
How Tray.ai Can Help:
tray.ai lets consent and preference change events trigger real-time workflows that propagate opt-out status, communication preferences, and data deletion requests across both platforms instantly. Audit logging within tray.ai gives you a traceable record of when consent changes were received and applied to each system, which helps with compliance documentation.
Challenge
Authentication and Secure API Access Management
Sitecore deployments — whether on-premise, managed cloud, or Sitecore XM Cloud — and Dynamics 365 each require distinct authentication mechanisms, including OAuth 2.0 tokens, API keys, and service account credentials. Managing and refreshing these credentials across environments manually is error-prone.
How Tray.ai Can Help:
tray.ai's secure credential store manages OAuth tokens and API keys for both Sitecore and Dynamics 365, automatically refreshing tokens before expiry and encrypting all credentials at rest. Teams can manage connections for multiple environments — dev, staging, and production — within a single interface without exposing credentials in workflow logic.
Challenge
Keeping Sitecore Personalization Rules Aligned with Changing CRM Data
As Dynamics 365 segment definitions, lifecycle stages, and account classifications change, Sitecore personalization rules that depend on that data can go stale, causing the wrong content to reach the wrong audiences. Manual updates to stay in sync are slow and error-prone.
How Tray.ai Can Help:
tray.ai scheduled workflows continuously poll Dynamics 365 for changes to segment membership and account data, automatically pushing updates to Sitecore contact profiles without human intervention. Personalization rule criteria stay current, and changes in CRM classifications show up on the live site within minutes.
Start using our pre-built Sitecore & Microsoft Dynamics 365 templates today
Start from scratch or use one of our pre-built Sitecore & Microsoft Dynamics 365 templates to quickly solve your most common use cases.
Sitecore & Microsoft Dynamics 365 Templates
Find pre-built Sitecore & Microsoft Dynamics 365 solutions for common use cases
Template
Sitecore Form Submission to Dynamics 365 Lead
Automatically creates or updates a Lead record in Dynamics 365 whenever a visitor submits a form in Sitecore, with full field mapping, deduplication checks, and lead source attribution.
Steps:
- Trigger on a new Sitecore form submission event via webhook or API poll
- Search Dynamics 365 for an existing Contact or Lead matching the submitter's email address
- Create a new Lead or update the existing record in Dynamics 365 with all mapped form fields and source metadata
Connectors Used: Sitecore, Microsoft Dynamics 365
Template
Dynamics 365 Lifecycle Stage Sync to Sitecore Personalization Rules
Fetches contact lifecycle stage and account tier data from Dynamics 365 on a scheduled basis and pushes it into Sitecore contact profiles, enabling dynamic personalization rules without manual segment management.
Steps:
- Schedule a recurring tray.ai workflow to query updated Contact or Account records in Dynamics 365
- Map CRM fields such as lifecycle stage, account tier, and industry to Sitecore xProfile attributes
- Update the corresponding Sitecore contact profiles via API, making new personalization rules immediately available
Connectors Used: Microsoft Dynamics 365, Sitecore
Template
Sitecore Engagement Score Threshold to Dynamics 365 Opportunity Update
Monitors Sitecore experience profile engagement scores and, when a threshold is crossed, automatically enriches the associated Dynamics 365 Opportunity with a behavioral activity note and updates the lead score field.
Steps:
- Poll Sitecore experience analytics for contacts whose engagement value exceeds a defined threshold
- Locate the matching Lead or Contact record in Dynamics 365 by email or external ID
- Create an Activity Note on the Dynamics 365 Opportunity summarizing recent Sitecore engagement and update a custom lead score field
Connectors Used: Sitecore, Microsoft Dynamics 365
Template
Sitecore Support Form to Dynamics 365 Case Creation
Captures support or service form submissions from Sitecore and automatically opens a new Case in Dynamics 365 Customer Service, assigns it to the correct queue, and sends a confirmation email to the submitter.
Steps:
- Receive a Sitecore form submission webhook for a support or service request form
- Create a new Case record in Dynamics 365 with all relevant contact details, issue description, and priority level
- Assign the case to the appropriate service queue and trigger a confirmation notification back to the customer via Dynamics 365 email activity
Connectors Used: Sitecore, Microsoft Dynamics 365
Template
Bidirectional Contact Profile Sync Between Sitecore and Dynamics 365
Keeps contact records in sync across both platforms, propagating updates — including consent changes, preference fields, and profile attributes — from whichever system was last modified.
Steps:
- Detect contact record updates in either Sitecore or Dynamics 365 using polling or change tracking
- Compare timestamps to determine the authoritative source of the latest change
- Apply the delta updates to the opposite system, preserving field-level conflict resolution rules
Connectors Used: Sitecore, Microsoft Dynamics 365
Template
Dynamics 365 Segment Push to Sitecore for Account-Based Personalization
Exports CRM-defined marketing segments and account classifications from Dynamics 365 and loads them into Sitecore as custom audience tags, enabling account-based and persona-specific content targeting.
Steps:
- Trigger a scheduled workflow to fetch the latest marketing segment membership and account tier data from Dynamics 365
- Transform and map CRM segment labels to Sitecore audience tag taxonomy
- Upsert Sitecore contact profiles with the updated tags, making segment-based personalization rules immediately active
Connectors Used: Microsoft Dynamics 365, Sitecore