Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  No successfull output in architect flow for the data action

    Posted 02-25-2025 08:14
    No replies, thread closed.

    Hi All,

    I don't see successful output in architect flows for data action.

    I need the below json to be available in the architect.

    Hi All,

    I have an API which gives the below raw response,

    {
      "total": 5,
      "data": [
        {
          "worker": {
            "descriptor": "Dummy name",
            "id": "9e4bae7b012b01d0c97f1ab726089393"
          },
          "unit": {
            "descriptor": "Hours",
            "id": "c4dacbd56bca4a9a8950e8d3ed21bbdb"
          },
          "absencePlan": {
            "timeoffs": "(Discretionary Day)",
            "descriptor": "Discretionary Day",
            "id": "9f87f860702d108b8efd3c6723349928"
          },
          "category": {
            "descriptor": "Time Off Plan",
            "id": "8cdc5bb54494100018789cabb3df006d"
          },
          "effectiveDate": "2025-02-21"
        },
        {
          "worker": {
            "descriptor": "Dummy name",
            "id": "9e4bae7b012b01d0c97f1ab726089393"
          },
          "unit": {
            "descriptor": "Hours",
            "id": "c4dacbd56bca4a9a8950e8d3ed21bbdb"
          },
          "absencePlan": {
            "timeoffs": "(Diversity Celebration Day)",
            "descriptor": "Diversity Celebration Day",
            "id": "7219002ea3ed010e3ed3025bfc01eec7"
          },
          "category": {
            "descriptor": "Time Off Plan",
            "id": "8cdc5bb54494100018789cabb3df006d"
          },
          "effectiveDate": "2025-02-21",
          "quantity": "8"
        },
        {
          "worker": {
            "descriptor": "Dummy name",
            "id": "9e4bae7b012b01d0c97f1ab726089393"
          },
          "unit": {
            "descriptor": "Hours",
            "id": "c4dacbd56bca4a9a8950e8d3ed21bbdb"
          },
          "absencePlan": {
            "timeoffs": "(Unpaid Leave - PTO, Protected/Sick Time, PTO)",
            "descriptor": "PTO",
            "id": "9f87f860702d108b8efd482c5a04992e"
          },
          "category": {
            "descriptor": "Time Off Plan",
            "id": "8cdc5bb54494100018789cabb3df006d"
          },
          "effectiveDate": "2025-02-21",
          "quantity": "184"
        },
        {
          "worker": {
            "descriptor": "Dummy name",
            "id": "9e4bae7b012b01d0c97f1ab726089393"
          },
          "unit": {
            "descriptor": "Hours",
            "id": "c4dacbd56bca4a9a8950e8d3ed21bbdb"
          },
          "absencePlan": {
            "descriptor": "Vaccine/Wellness Time",
            "id": "d560d355351d01aab570df4f8754ae73",
            "timeoffs": "(Vaccine/Wellness Time)"
          },
          "category": {
            "descriptor": "Time Off Plan",
            "id": "8cdc5bb54494100018789cabb3df006d"
          },
          "effectiveDate": "2025-02-21",
          "quantity": "4"
        },
        {
          "worker": {
            "descriptor": "Dummy name",
            "id": "9e4bae7b012b01d0c97f1ab726089393"
          },
          "unit": {
            "descriptor": "Hours",
            "id": "c4dacbd56bca4a9a8950e8d3ed21bbdb"
          },
          "absencePlan": {
            "timeoffs": "(Volunteer Time)",
            "descriptor": "Volunteer Time",
            "id": "9f87f860702d108b8efd557de9ac9938"
          },
          "category": {
            "descriptor": "Time Off Plan",
            "id": "8cdc5bb54494100018789cabb3df006d"
          },
          "effectiveDate": "2025-02-21",
          "quantity": "40"
        }
      ]
    }

    Let me know your comments!

    Regards,

    Jarvish Kisanth Singh


    #API/Integrations

    ------------------------------
    Jarvish Kisanth Singh
    ------------------------------


  • 2.  RE: No successfull output in architect flow for the data action
    Best Answer

    Posted 02-25-2025 14:52
    No replies, thread closed.

    Have you managed to setup a data action that calls that API?

    Which you can do through the Generic Web Services Integration, see below for documentation link.

    Have you tested the data action, in the action editor, does it work there (when flattened).

    Have you setup your output contract? or are you after the RAW json? - See this dev forum post on how to get the raw value: https://developer.genesys.cloud/forum/t/data-action-returning-json-in-success-template/18688/2

    Web Services Integration:

    https://help.mypurecloud.com/articles/about-web-services-data-actions-integration/

    Really just looking for more detail on which step you are stuck on so I can give you a more targeted answer.



    ------------------------------
    Anton Vroon
    ------------------------------