Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Availability Capacity Booking Showing Negative Used Quote via API — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Availability Capacity Booking Showing Negative Used Quote via API

Received Response
16
Views
2
Comments
edited Nov 24, 2020 5:14PM in Field Service 2 comments

Summary

After migrating from timeslots to booking intervals, we are randomly getting back negative used quota when pulled via API.

Content

After we migrated from timeslots to booking intervals, when we pull used quota for a booking interval and capacity category, we are getting back negative used quota for some buckets.

This in turn, is allowing more bookings to come in, instead if actually showing positively used quota we are used too.

Example:

  "label": "RP",
                            "maxAvailable": 2160,
                            "used": 713,
                            "count": 10,
                            "status": 66,
                            "intervals": [
                                {
                                    "timeFrom": "08:00",
                                    "timeTo": "12:00",
                                    "quota": 35,
                                    "used": -407,
                                    "status": 2
                                },
                                {
                                    "timeFrom": "12:00",
                                    "timeTo": "17:00",
                                    "quota": 168,
                                    "used": 241,
                                    "status": 2

Version

20B SU17

Code Snippet

  "label": "RP",
                            "maxAvailable": 2160,
                            "used": 713,
                            "count": 10,
         

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!