Genesys Cloud - Developer Community!

 View Only

Sign Up

Expand all | Collapse all

Is there a way I can identify that the object which is stored in the DataTable is of type Queue or DID using any of the API ?

  • 1.  Is there a way I can identify that the object which is stored in the DataTable is of type Queue or DID using any of the API ?

    Posted 09-19-2025 04:05

    Is there a way I can identify that the object which is stored in the DataTable is of type Queue or DID using any of the API ?


    #PlatformAPI

    ------------------------------
    Hari Shankar
    Genesys Specialist
    ------------------------------


  • 2.  RE: Is there a way I can identify that the object which is stored in the DataTable is of type Queue or DID using any of the API ?

    Posted 09-19-2025 07:14

    Hi Hari,

    I believe not natively, as what you are storing in the data table is not actually a queue object, and instead just a string.

    What you can do is making sure your queues or DIDs have an specific naming convention, so that you can check for that when you read the table.

    So, let's say all your queue names must start with "Q_"... This way you will know that "Q_XYZ" is a queue, but "12345" isn't.

    --------

    Also, you can use the "Find Queue" component on a Flow to check if that string corresponds to a queue object.

    There isn't a "Find DID" component, but you can do that using APIs if needed to confirm if it exists:

    GET /api/v2/telephony/providers/edges/dids?phoneNumber=xxxxxxx



    ------------------------------
    Marcello Jabur
    ------------------------------



  • 3.  RE: Is there a way I can identify that the object which is stored in the DataTable is of type Queue or DID using any of the API ?

    Posted 09-19-2025 08:52
    As Marcello mentioned, naming convention is helpful in this case. And it's very important because the error messages in the Operational Console (Architect-0001) do not indicate the type of object if one could not be found, only the name.
     
    What I've seen/used in multiple projects is using an indicator in the data table.
    Either a separate field specifying the object type used in the next field or using a prefix (Q:myQueueName, T:+123targetNumber, F: myFlow@localhost, VU:mailboxUser, VG:mailboxGroup and so on).


    ------------------------------
    Christian Karpp
    Principal PS Consultant
    ------------------------------