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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Actions are Synchronous or Asynchronous (Nested actions to be used)

(0) ShareShare
ReportReport
Posted on by 270

We have a Global action which is general and used in API by other Systems to interact with Dynamics 365 with different Parameters and the perform different Operations.

In One of the scenario we need to create record in bulk which somehow based on no. of records stop inserting data in CRM as data is being entered in System via Create Request which is Synchronous i believe. so need to change this logic to a Asynchronous approach.

We are planning to use another action instead of create Request which we will call from Parent action Custom Code but it will be helpful only if this child action is Asynchronous so as much big will be the no. of records it will execute and will not block System as it will Run Asynchronous (that is an assumption need clarification)

Please suggest this approach will work or we should use any other workaround ?

Thanks in Advance 

I have the same question (0)
  • Suggested answer
    Stefan Cojocaru Profile Picture
    Microsoft Employee on at

    Hi Bilal,

    This really depends on what exactly you are trying to achieve.

    All requests at the platform level are executed synchronously but depending on how you trigger the operation, you  can specify you want it to be executed asynchronously. Sending just one Create request in an async way, in the end does not bring any benefits since it will be executed synchronously in the end, but having multiple requests batched together can take advantage of this.

    If you are working with code you could make use of ExecuteMultiple and batch multiple create requests together. You have an example here: docs.microsoft.com/.../execute-multiple-requests

    You can also use PowerAutomate (formerly Flow) to send create those records: docs.microsoft.com/.../connection-dynamics365 but please take note of the API service limits: docs.microsoft.com/.../api-limits

    Hope this helps!

  • Suggested answer
    MMK Profile Picture
    745 on at

    Hi Bilal,

    Actions are Synchronous

    you can use execute Multiple request or Bulk Create/Update  to create/update records in CRM

    docs.microsoft.com/.../use-executemultiple-improve-performance-bulk-data-load

    softnovation.wordpress.com/.../

  • Bilal Ahmed Profile Picture
    270 on at

    Thanks,

    We are already using ExecteMultiple for this but as its synchrounous , it is failing in some scenerio when number of request are unusual.

    Can you help in terms of any sample code for retry of create Request (multiple or single) so we can handle failed request and send them again for excecution because as of now in some cases it fails and due to no retry records are missing

  • Suggested answer
    Stefan Cojocaru Profile Picture
    Microsoft Employee on at

    Hi Bilal,

    A create request will return a GUID so you can perform a check to see if the returned GUID is not null. If it is, you can implement a retry logic, like waiting a few moments and sending the request again.

    You have some examples here: community.dynamics.com/.../1055861

    Thank you!

  • MMK Profile Picture
    745 on at

    Hi Bilal

    if you are having an API calling action in CRM then i suggest do the stuff from the API itself

    In your request set the  ReturnResponses = true and check after execution which one is failed

    Records Counts limit is 1000 in ExecuteMultipleRequest

    but you should keep 500

    var multipleRequest = new ExecuteMultipleRequest()

          {

              // Assign settings that define execution behavior: continue on error, return responses.

              Settings = new ExecuteMultipleSettings()

              {

                  ContinueOnError = false,

                  ReturnResponses = true

              },

              // Create an empty organization request collection.

              Requests = new OrganizationRequestCollection()

          };

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 196 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans