web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Best Practices for Implementing Reliable Dataverse Integrations with External Systems

(2) ShareShare
ReportReport
Posted on by 110

Hi team,

https://community.dynamics.com/forums/thread/details/?threadid=796bd8f9-f1c6-f111-aaad-3833c5e86001

Continuing the thread 

 

1: Set-based processing works

 


Suppose you want to insert 1,000 customers into D365FO.
D365FO can ask SQL Server to insert multiple records together instead of processing every customer separately.

 

 

2: Set-based processing falls back


Suppose we have business requirements :
If a customer's credit limit exceeds ₹1,00,000, reject that customer.
Otherwise, insert the customer.


***Suppose the required validation must run separately for each customer.
D365FO may need to process the records individually to execute the required logic. For example - Postload method.

 

So, my assumption is Enabling set-based processing means D365FO can attempt bulk processing; it does not guarantee that every operation will run that way. The exact fallback depends on the implementation and the type of logic involved.

 

Is my understanding is correct?

 

Pls advise thanks 

 

 

 

  • Suggested answer
    Travis South Profile Picture
    381 on at

    A pattern that works well is to choose the integration method based on the business need first, then design reliability around it. For synchronous work, keep plugins lightweight and time-sensitive. For higher-volume or failure-tolerant processing, move work asynchronously through Power Automate, Azure Functions, or Service Bus. In either case, use idempotency keys, correlation IDs, retry policies, and centralized logging so duplicate requests, throttling, and partial failures can be diagnosed and recovered without creating duplicate data. For bidirectional sync, it also helps to define a clear system of record for each data element and use change tracking or integration flags to prevent update loops.

  • Suggested answer
    11manish Profile Picture
    1,821 Super User 2026 Season 2 on at

    For business-critical or high-volume integrations, prefer a decoupled architecture using a transactional outbox, Azure Service Bus, and Azure Functions, with idempotent processing, centralized monitoring, and a tested recovery strategy.

    For simpler workflows, Power Automate may be sufficient. Reserve synchronous plug-ins for operations that genuinely require immediate execution or transactional enforcement.

    The governing principle is: keep Dataverse transactions short, decouple unreliable external dependencies, assume duplicate delivery is possible, and design every critical integration to be monitored, retried, reconciled, and safely recovered.

    refer below :

    https://learn.microsoft.com/en-us/power-platform/well-architected/reliability/principles

     

    https://learn.microsoft.com/en-us/power-platform/well-architected/

     

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/scalable-customization-design/database-transactions

     

    https://learn.microsoft.com/sr-cyrl-rs/power-apps/developer/data-platform/write-plug-in?tabs=pluginbase

     

    https://learn.microsoft.com/en-us/power-platform/architecture/reference-architectures/transactional-outbox-pattern

     

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/use-webhooks

     

    https://learn.microsoft.com/en-us/power-platform/architecture/solution-ideas/healthcare-engagement

     

  • Verified answer
    Muhammad Shahzad Shafique Profile Picture
    2,779 Most Valuable Professional on at

    In production, I generally follow a hybrid, event-driven integration architecture:

     

    • Synchronous plugins: Lightweight validations and operations requiring an immediate Dataverse response.

    • Power Automate: Low-to-medium complexity integrations and workflow orchestration.

    • Azure Functions + Service Bus: High-volume, long-running, or mission-critical integrations requiring decoupling and scalability.

    • Reliability: Implement exponential backoff, respect 429 Retry-After, use idempotency keys or alternate keys, and maintain a dead-letter queue for failed messages.

    • Data consistency: Use change tracking, source-system identifiers, and origin/modified-by checks to prevent infinite synchronization loops.

    • Monitoring: Centralize logs in Application Insights or Azure Monitor, propagate correlation IDs, and implement alerting and controlled reprocessing.

    Key lesson: Design for at-least-once delivery, idempotent processing, and observable failures. Never assume an API call or message will execute exactly once.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 46 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 35

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 33 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans