• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    πŸš€ Exclusive Lifetime Offers πŸš€

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • πŸ”₯ Pabbly Connect β€” Lifetime Access for $249 β€” View Offer
    • πŸ”₯ Pabbly Subscription Billing β€” Lifetime Access for $249 β€” View Offer
    • πŸ”₯ Pabbly Chatflow β€” Lifetime Access for $249 β€” View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

  • Important: Any reported problems and issues with your integration will be reported to you and we will encourage the app developers help to resolve those integration issues.

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