Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Object ids unique?

    Posted 06-05-2025 19:22

    xember | 2021-12-07 19:51:34 UTC | #1

    Hi,

    Everything within genesys cloud has an id. For instance a businessunit or an agent. Are the ids unique? Or are the ids unique within their object type? In other words, can an agentid be the same as a businessunit id?

    BR,

    Peter


    Jason_Mathison | 2021-12-07 20:07:49 UTC | #2

    Hi Peter,

    If the ID looks like this a00c6c75-598f-42f3-bfcb-938d546512fa It is almost certainly a "Universally Unique Id", so it should never be duplicated anywhere by anything.

    Here is some more information about them: https://www.guidgenerator.com/online-guid-generator.aspx

    If the ID has a different look please post it so we have more context.

    --Jason


    xember | 2021-12-07 20:45:27 UTC | #3

    Thanks Jason yes those ID`s I was refering to. So the change of having a duplicate is very rare. I can also imagine that genesys is double checking their database before issueing them....

    Thanks again!


    brian.trezise | 2021-12-08 18:00:33 UTC | #4

    Going to chime in here since you mentioned business units, which is a part of the platform I work on - Within business units, the "default" activity codes for each category have constant IDs that will be the same across all business units, but any activity codes you configure will have unique IDs.

    To address the concern about uniqueness of UUIDs more generally:

    So the change of having a duplicate is very rare. I can also imagine that genesys is double checking their database before issueing them....

    The chances of a duplicate UUID are extremely remote. According to this article:

    [A]fter generating 1 billion UUIDs every second for the next 100 years, the probability of creating just one duplicate would be about 50%. The probability of one duplicate would be about 50% if every person on earth owns 600 million UUIDs.

    So while the odds of a duplicate are technically non zero from a mathematician's perspective, for purposes of software development it is generally considered safe to treat them as "guaranteed to be unique".


    Jason_Mathison | 2021-12-10 17:01:27 UTC | #5

    I am not aware of any service that validates a UUID is unique prior to using it. A significant factor making this reasonable is that there is always context around what the UUID is a key for. For example, you wouldn't use the UUID for an AgentId in the US-East-1 region to get a queue configuration in the London region. This regional and service level isolation of IDs dramatically reduces the chance of UUID collision.


    xember | 2021-12-12 11:58:43 UTC | #6

    Yes that does indeed sound plausible. Thanks for your answers and help!


    Ebenezer_Osei | 2021-12-13 19:05:28 UTC | #7


    This post was migrated from the old Developer Forum.

    ref: 12876