Genesys Cloud - Main

 View Only

Sign Up

  • 1.  Using Data Action under Flow shows "There are no inputs or outputs."

    Posted 09-16-2025 09:45

    Hello

    I created "Get_ID_For_OnQueue_Presence" Action to return ID for ON_QUEUE presence based on /api/v2/systempresences, as I need to update agents presence depends on some logical conditions on different environments (DEV, UAT, PROD)

    The Action configuration looks like below

    If I run a test and I receive a proper values I should be able to use under flow

    However, once I used inside my Workflow a "Get_ID_For_OnQueue_Presence" Data Action there is a message "There are no inputs or outputs" instead of output "name" and "id" fields.

    I probably made some mistake... but I stuck. Any idea welcome.

    Regards,

    Mariusz


    #API/Integrations

    ------------------------------
    Mariusz Ziemiecki
    NA
    ------------------------------


  • 2.  RE: Using Data Action under Flow shows "There are no inputs or outputs."

    Posted 09-16-2025 10:25
    Edited by Jason Kleitz 09-16-2025 13:54

    Hi Mariusz,

    I have never seen that happen, so I'm not sure what it could be.

    At first I was going to ask if you actually published the Data Action, but the screenshots seem to confirm that you did. And you are also seeing the Action on the Flow, so that seems to not be the case. But just to make sure the action is using the latest configuration, maybe you could try publishing it again (I see on your screenshot that it is currently on "draft mode")

    I would also just try to duplicate the action and use a different name (xxx - v2), and then look for the action with the new name on the Flow, just to make sure everything is up to date. Did you try that?

    Also try to create a new Flow and check there if the issue also happens. (At least this way you can eventually narrow down the issue... if it's something on the action, or on the flow, etc.)



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



  • 3.  RE: Using Data Action under Flow shows "There are no inputs or outputs."

    Posted 09-16-2025 11:12

    I had this same issue last week. I haven't revisited it as yet but interesting to know you have the same problem.



    ------------------------------
    Savino Ricci
    Senior Technical Consultant
    ------------------------------



  • 4.  RE: Using Data Action under Flow shows "There are no inputs or outputs."
    Best Answer

    Posted 09-16-2025 13:23
    Edited by Jason Kleitz 09-16-2025 13:54

    Hello,

    I think this is because of your use of tuple in your output contract (which is maybe not what you wanted to do/achieve - or it can be done differently).

    I mean that you have defined an array with a single tuple type inside (the object with id and name properties).

    I would tend to think this is also why it is not showing in the Workflow Call Data Action - the flow probably not being able to flatten that object (as flow doesn't manage an output property of type object). Definition of tuple is specific and may not have been totally managed in the flow.

    To define the array tuple, the string/integer/... tuple types would be directly below the "Tuple" toggle button - a first type for an integer, a second type for a string, ...

    This is to define an array (ordered list) containing elements of different types.

    What you could do instead is to have something like this in your output contract:

    {
      "type": "object",
      "properties": {
        "presence": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          }
        }
      }
    }

    Using a response configuration like this (assuming you just want to retrieve one system presence):

    {
      "translationMap": {
        "presence": "$[?(@.name == \"ON_QUEUE\")]"
      },
      "translationMapDefaults": {
        "presence": "[]"
      },
      "successTemplate": "{ \"presence\": ${successTemplateUtils.firstFromArray(\"${presence}\", \"{}\")} }"
    }

    Regards,



    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------



  • 5.  RE: Using Data Action under Flow shows "There are no inputs or outputs."

    Posted 09-17-2025 09:32

    Hello Jerome

    Thank you for advice - it works as expected!

    Regards,

    Mariusz



    ------------------------------
    Mariusz Ziemiecki
    NA
    ------------------------------