how to add dictionary like object as a field in pabbly connect?

Krishna@123

Member
Hi,
I have a request object like this.

{
"project": {
"long_url": "https://www.npmjs.com/package/vue-cli-plugin-browser-extension",
"ab_rotator_data": [

{

"redirection_link": "https://www.npmjs.com/package/vue-cli-plugin-browser-extension",

"percentage": 25

},

{

"redirection_link": "https://www.npmjs.com/package/vue-cli-plugin-browser-extension",

"percentage": 25

},

{

"redirection_link": "https://kripeshadwani.com/dns-records-explained/",

"percentage": 50

}

]
}
}
how to add field like "ab_rotator_data"?
 
P

Pabblymember11

Guest
Hey @Krishna@123

Further, if you are trying to build the API request in API by the Pabbly action step then kindly provide us the API docuemantion of the application.

Else, if you are a developer then you can simply build the integration on the platform.

Our comprehensive developer guide will help you through every step of building a solid app for your API and creating a great experience for your users.

Please go through all guides carefully and start working on creating your apps - https://forum.pabbly.com/forums/pabbly-connect-app-integration-guide/

Once you create your app and request for publishing your app, we will make it live soon after review.

In case you are stuck at any step, you can let us know. We will help you accordingly.
 

Krishna@123

Member
I want to create array of JSON objects. As I have mentioned above, I want to store

"ab_rotator_data": [

{

"redirection_link": "https://www.npmjs.com/package/vue-cli-plugin-browser-extension",

"percentage": 25

},

{

"redirection_link": "https://www.npmjs.com/package/vue-cli-plugin-browser-extension",

"percentage": 25

},

{

"redirection_link": "https://kripeshadwani.com/dns-records-explained/",

"percentage": 50

}]

this type of object multiple times as user wants. (Something like how we allow multiple items in select field. same way I want to create array of obects {

"redirection_link": "https://kripeshadwani.com/dns-records-explained/",

"percentage": 50

} multiple times as user wants.
})
 
Last edited:
P

Pabblymember11

Guest
Hey @Krishna@123

Could you please share your complete usecase briefly, so that we can look into the possibility of it.
 

manipathak

Member
Pabbly Connect itself doesn’t have a native “dictionary object” field type the way some coding tools do, but you can pass or build a dictionary/JSON object structure when sending data (for example in an API request or webhook) by using raw JSON or structured parameters. That lets you treat it like a dictionary with key‑value pairs inside an object.

Below are the steps to do this correctly:

Step‑by‑Step Guide

1. Start Your Workflow

  1. Log in to Pabbly Connect and create a new workflow.
  2. Choose a trigger app (e.g., webhook, form, CRM) and test it so that Pabbly retrieves sample data.

2. Add an Action Step (API / Webhook)

  1. Click the “+ Add Action” button after your trigger.
  2. Choose the HTTP / APIapp if you need to send or build custom JSON.
    • This lets you configure request details including headers, body, and payload type.

3. Select Request Type & Payload Format

  1. In the configuration, choose POST or PUT as needed.
  2. Set Payload Type to JSON — this is what lets you send structured objects.

4. Build Your JSON Object (Dictionary‑Like Field)

In the Request Body (Raw JSON) section, you can directly paste or construct an object structure. For example:

{
"email": "{{email}}",
"name": "{{name}}",
"fields": {
"company": "{{company}}",
"address": "{{address}}",
"phone": "{{phone}}"
}
}

✔ The "fields" section above acts like a dictionary/object, with key‑value pairs.
✔ You can include dynamic variables from earlier steps in place of those curly brace values.

This structure allows you to send nested JSON data, which is the equivalent of a dictionary or object in APIs.

5. Confirm/Map Variables

  1. Pabbly will show dropdown options for dynamic data you can insert (e.g., {{email}}, {{name}}).
  2. Insert them where needed inside your JSON structure.
⚠ Note: Make sure to keep matching braces and commas correct so your JSON stays valid.

6. Test the Step

  1. Click Save & Send Test Request.
  2. Check the API you’re connecting to (or your webhook receiver) to see if the object data arrived correctly.
📌 If the API expects nested objects, this raw JSON structure ensures it receives the “dictionary‑like” format.

Tips for Working with Object/Data Structures

Use Request Body (Raw JSON) when you need nested fields or key/value pairs in a single parameter.
• When connecting to real APIs, ensure the endpoint supports nested JSON objects — otherwise you’ll need to adjust.
• Some Pabbly actions handle nested arrays or objects automatically if the integration supports custom fields.

Quick Example

If an API expects a “profile” object inside the main request, your JSON might look like:

{
"user_id": "{{user_id}}",
"profile": {
"first_name": "{{first_name}}",
"last_name": "{{last_name}}",
"preferences": {
"newsletter": "{{newsletter_status}}",
"notifications": "{{notif_pref}}"
}
}
}

This structure works as a dictionary‑like field inside Pabbly Connect.

Read More:
 
Last edited:
Top