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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Performance Optimizat...
Power Automate
Unanswered

Performance Optimization & Case ID Retrieval for Dynamics 365 Case Creation via Power Automate

(1) ShareShare
ReportReport
Posted on by 2
Hi Team,
Problem Description:

We are experiencing significant latency when creating cases in Dynamics 365 through a Power Automate workflow, specifically impacting the ability to immediately retrieve the generated Case ID for our front-end application.

Current Architecture & Process Flow:


  1. Front-End: A web application hosted on AWS serves as our user interface and Backend for UI

  2. Case Creation Trigger (New): Upon submission of a new web form in the AWS application, a process is triggered.

  3. Power Automate Integration: This AWS back-end triggers a Power Automate workflow.

  4. Dynamics 365 Web Request (Existing): The Power Automate workflow, in turn, calls an existing Dynamics 365 Web request (or similar established method, previously used by a Power Apps web form) to create the case within Dynamics 365.

  5. Case Generation & Notification: The case is successfully created in Dynamics 365, and an email notification is sent to the user.


  6.  

The Core Issue: Latency in Case ID Retrieval

Our critical requirement is to retrieve the newly generated Dynamics 365 Case ID immediately back into our AWS back-end application. This Case ID needs to be stored in our database for future reference and integration purposes, and crucially, displayed to the user on the AWS UI immediately upon submission.

However, we are observing a significant delay:


  • When the Power Automate workflow triggers the Dynamics 365 Web API request, the entire process, including a child flow, takes approximately 30 to 60 seconds to complete the case creation and return.

  • Due to this delay, we are unable to display the Case ID instantly on the AWS UI, leading to a poor user experience. Users expect immediate confirmation and the unique identifier for their submitted case.


  •  

Specific Questions for Microsoft:


  1. Workflow Optimization Potential:

     

    • What are the recommended strategies and best practices for optimizing Power Automate workflows that trigger Dynamics 365 Web API calls, specifically for case creation, to minimize execution time?

    • Are there specific actions or configurations within Power Automate or Dynamics 365 that could reduce the observed 30-60 second latency?


    •  

  2. Expected Performance Benchmarks:

     

    • What is the expected or typical latency for a Dynamics 365 case creation via the Web API triggered by Power Automate?

    • Is it feasible to achieve a return of the Case ID within a few seconds (e.g., sub-3 seconds, ideally 1-2 seconds), or is the current observed delay considered standard behavior for this type of integration?


    •  

  3. Architectural Alternatives for Immediate ID Return:

     

    • If synchronous, low-latency return of the Case ID via the current workflow chain (AWS -> Power Automate -> Dynamics Web API) is inherently limited by platform architecture, what alternative patterns or architectural approaches does Microsoft recommend for immediately providing a newly created Dynamics 365 Case ID back to a calling external system (like our AWS back-end)?

    • Are there asynchronous patterns with rapid ID return mechanisms (e.g., using virtual tables, specific real-time APIs, or alternative triggers/actions) that we should explore?


    •  
  4. Workflow Diagnostics and Mitigation:

     

    • Can Microsoft support provide assistance in diagnosing the specific bottlenecks within our Power Automate workflow or the Dynamics 365 Web API call that contribute to this delay?

    • Is it possible for a Microsoft expert to review our workflow configuration and offer specific mitigation strategies or adjustments?


    •  
    Goal:

  5.  

Our primary objective is to enable immediate display of the Dynamics 365 Case ID to our users on the AWS UI upon submission. We require clarification on whether the current latency can be significantly reduced through optimization, or if it represents a default platform behavior that necessitates a different architectural approach for immediate ID retrieval

Categories:
I have the same question (0)
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    If you reply on Power Automate to do so ( create Case ID and return it back immediate), the answer is close to Nope.
    Optimization won't make it happen if you want ID immediately (<3s).
    My suggestion is ( assume that you use customized Case ID, e.g Case Number) :
    1.  Split current flow, async task leave it to power automate ( if the latency is acceptable).
    2.  Invoke dataverse API directly from AWS only for the Case ID with a few mandatory info.
    3.  Use a custom table to generate the ID, ( async to case table).
    4.  create/simulate ID pool ( withdraw ID) in AWS, async with dataverse, so AWS service always has deposit ID on hand.
    5.  you have to figure out how to eliminate the ID conflict, for example use different sequence rule for that.
    Good luck.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 507 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 267 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard