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

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Integration with MS flow - Optimization

(0) ShareShare
ReportReport
Posted on by 411
Hi Folks,
We have implemented Third Party Application integration with MS flow.
Fully Cycle: 3rd Party Tool -> Azure DB -> MS Flow -> D365FO
Current Scenario:-

1. 3rd party tool pushes a single record to AZURE DB ( 2 seconds)
2. AZURE DB pushes that record to MS FLOW ( more than 30 seconds)
3. MS FLOW pushes it to D365FO ( 20-25 seconds - Not very consistent with timings sometimes it take 5 or 26 seconds)
4. D365FO - Received record will get processed.( 20 seconds)

The entire process is completed in more than a minute and few seconds more.
But expected completion time is 30 seconds only.
Problem:-
2nd step ie AZURE DB to MS flow is taking more than expected time.
It should not take more than 2-3 seconds.
Approaches:-
1. can we optimize MS flow to reduce timings ?
2. if we can not optimize MS flow, can we replace 2nd and 3rd step with direct AZURE DB connection using x++
(I am clueless how can we establish connection with AZURE DB)
3. I am using Trace options of D365FO to optimize the performance but I feel it wont be of much help since it will trace only at the 4th stage.
4. any other optimal way of accomplishing this ?
This integration is GO-LIVE stopper for us, if we can not achieve this in 30 seconds.
GO-LIVE could be on halt.
.

It would be really great help if someone can guide about this process.

Thanks in advance.
I have the same question (0)
  • Martin Dráb Profile Picture
    236,289 Most Valuable Professional on at
    RE: Integration with MS flow - Optimization

    Maybe you should call the Flow directly, instead of letting it check if there is a new record. The third-party app could either put a record to AzureDB and then call Flow, or maybe simply pass data directly to Flow in an HTTP request.

    If you decide to use Azure DB directly from X++, you'll use normal .NET API for working with Azure storage.

  • babalalex Profile Picture
    411 on at
    RE: Integration with MS flow - Optimization

    Thanks Martin for prompt reply.

    I could not understand your 1st approach of call flow directly.

    If I have to Read Azure DB , can't it be done using x++?

    I am not much familiar with .NET APRI for AZURE Storage.

    Can you guide ?

  • Martin Dráb Profile Picture
    236,289 Most Valuable Professional on at
    RE: Integration with MS flow - Optimization

    Look at Calling Microsoft Flow from your application, for example.

    X++ has a feature called .NET Interop from X++, which allows you to use .NET classes. Therefore it can be done from X++, you'll just call classes defined in .NET. Note that it's often beneficial to create a C# project and do most of work there, rather than doing do everything through .NET Interop.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 945

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 256 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 176 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans