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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Multiple bookings are creating in single time slot for the resource in Field Service.

(1) ShareShare
ReportReport
Posted on by 2
Hi sir/madam,
 
From Web API request, we are creating bookings for the resources automatically.
When multiple end users are calling web api at a time(concurrently), Multiple bookings are creating in single time slot for a particular resource in Field Service eventhough user has single time slot and capacity one. This issue occurs for concurrency requests only.
How to restrict the multiple bookings for single time slot resource  from web api- call. It should work first come first serve. First user should be able to create booking. next users should receive error message booking exceeds and it should not create booking.
 
 
I have the same question (0)
  • Suggested answer
    Dengliang Li Profile Picture
    Microsoft Employee on at
    Hi,
     
    According to this official document, you can use the ParallelOptions.MaxDegreeOfParallelism Property to define the maximum number of concurrent tasks.
    Service protection API limits (Microsoft Dataverse) - Power Apps | Microsoft Learn

    Best Regards,
    Dengliang Li
     
  • Suggested answer
    Arsen Zakaryan Profile Picture
    10 on at
    Hello,
     
    You can create a plugin for duplicate detection. So, when a booking is created the system will check if another booking exists for the relevant time slot, and if yes it will throw an error. 
     
     
    Best Regards,
    Arsen Zakaryan
  • Community member Profile Picture
    2 on at
    Hi @Arsen Zakaryan,
     
    Yes we have plugin logic in place. Still we are receiving this issue when users request's (concurrently) in the same time for the same resource and same slot.
    If there is some delay in between the requests(like more than 5 secs), then no issue, its not creating multiple bookings. 

    Best Regards
    ​​​​​​​Satya

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 35 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans