• ⚠️ Important: This forum is being discontinued.

    We've moved community discussion to a new platform — better search, faster replies, and tighter integration with the Pabbly apps you already use.

    • Sunset date: 23 July 2026 (this forum will go offline after that)
    • Until then: Login remains available for 30 days
    • Continue the conversation: https://sales.pabbly.com/forum

Transfer Object to Array within Inbuild Action Configuration

  • Thread starter Deleted member 8616
  • Start date
Status
Not open for further replies.
When configuring "Dropdown & Custom Fields" from an array of objects within the Inbuilt Action , it's essential to understand how to traverse JSON objects to access the array and generate the dropdown options accordingly. This guide provides instructions on utilizing the "Transform Object To Array" option and specifying the traversal path within a JSON object to generate dropdown fields effectively.

Instructions:
  1. Tick "Transform Object To Array" Option: Ensure to check the "Transform Object To Array" option when setting up dropdown fields from an array of objects within the Inbuilt Action.
  2. Specify Traversal Path: Provide the path to traverse within the JSON object using dot notation. Identify the array of objects from which dropdown options need to be generated. For instance, if the dropdown options are to be generated from the pipes array within the JSON object, specify the traversal path as follows: data.organization.pipes.
Example Curl Request:
Code:
curl --location "https://api.pipefy.com/graphql" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer YOUR-BEARER-TOKEN" \
--data "{
    \"query\": \"{ organization ( id:301286944 ) { pipes { id name } } }\"
}"

Response JSON:
Code:
{
    "data": {
        "organization": {
            "pipes": [
                {
                    "id": "304115076",
                    "name": "[IT] Change Management"
                },
                {
                    "id": "304115078",
                    "name": "[IT] Problem Management"
                },
                {
                    "id": "304115079",
                    "name": "[IT] Incident Management"
                },
                {
                    "id": "304115085",
                    "name": "[IT] Requisition Management"
                }
            ]
        }
    }
}

In the provided JSON response, the pipes array consists of objects containing "id" and "name" fields. These fields can be used to generate dropdown options. To transform this array of objects to dropdown fields, utilize the traversal path data.organization.pipes.

Here is the example to setup within Pabbly Connect Inbuilt Action Configuration.
1714650631384.png
 
Last edited by a moderator:
Status
Not open for further replies.
Top