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 CRM (Archived)

AddUserToRecordTeamRequest/RemoveUserFromRecordTeamRequest using ExecuteMultipleRequest

(0) ShareShare
ReportReport
Posted on by

We are trying give privileges to users to BusinessUnits using  AddUserToRecordTeamRequest/RemoveUserFromRecordTeamRequest and ExecuteMultipleRequest. A Typical scenario with 700 requests in ExecuteMultipleRequest  takes 3-4 minutes for a user. 3000 users accessing the system to do this operation stresses out the system and users not able to access the system at peak time.

Any directions or advises to improve the performance will be a great help.

Thanks,Naren

*This post is locked for comments

I have the same question (0)
  • RaviKashyap Profile Picture
    55,410 Moderator on at

    is this an external application? is it running on recurring basis or sone other trigger.

  • Community Member Profile Picture
    on at

    Hi Naren,

    I am a bit confused with your question. Why are you using AddUserToRecordTeamRequest to assign Business Units to Users ? Isn't it a plain Update call on the User entity ?

    Could you please elaborate a bit more ?

    Thanks,

    Akhil

  • Community Member Profile Picture
    on at

    Akhil, i put it another way,

    code executing ExecuteMultipleRequest with a max of 900 records per request by around 500-3000 users simultaneously. This errors out for few users, impacting them system being not accessible for minutes.

  • Suggested answer
    Community Member Profile Picture
    on at

    Is this on-premise or online. If it's Online, according to Microsoft they would auto scale based on the usage. For on-premise we ran into this issue one and there was nothing else we could do unless to reduce the number of requests.

    The bigger question to ask is, are there any plugins or workflows that trigger for the execute multiple requests ? If so, your request count further increases as all of these are synchronous transactions.

  • Community Member Profile Picture
    on at

    This is On Premise solution and the logic is in synchronous workflow..im wordering if we could separate the logic out from workflow and process asynchronously.

  • Suggested answer
    Community Member Profile Picture
    on at

    Yes, you should try to use the Asynchronous workflows/plugins as and when possible in this case as it definitely would show some improvement in performance. But also try if you can get down the number of hits/sec on CRM by redesigning your solution.

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans