• 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 $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

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

How to return only a flat JSON object (instead of the full bundle) from Data Forwarder?

seda

Member
Hi everyone,

I’m working with an inbound webhook in Pabbly that gets triggered from an external system (fonio.ai). This system expects a flat JSON response like this:
Code:
{ "name": "John Doe" }

I already built a workflow like this:
  1. Webhook (catch call with fromNumber / toNumber)
  2. Google Sheets (lookup to get matching contact)
  3. Code (Pabbly) – Run JavaScript
    → Here I clean up the data so that the code output is already a flat object, e.g.
    Code:
    return { name: "John Doe" };
  4. Data Forwarder (Pabbly) – Return Workflow Response to the Source
The problem:
Even if I map only the code output into the Data Forwarder, the actual HTTP response still includes the entire workflow bundle (webhook input, sheets result, filter output, etc.) as an array.

Example (what I get in Postman):
Code:
[
{ "toNumber": "+4444", "fromNumber": "+4912345678" },
{ "response": { "rowsFound": 1, "result": [ { "rowValue": { "Name": "John Doe" } } ] } },
{ "status": "success", "message": "Condition is true" },
{ "output": { "name": "John Doe" } }
]

But what I actually need to return is only:
Code:
{ "name": "John Doe" }

I’ve seen other forum posts (e.g. where people use the Code step to extract specific values from JSON), and I already tried this. The extraction itself works fine — the issue is that Data Forwarder still wraps the full workflow output in an array.

👉 My question:
Is there any way in Pabbly to configure the Data Forwarder so that it returns only the Code step output (flat JSON) and not the entire workflow history?

This is critical because the external system (fonio) will try to read the JSON and ends up reading everything (numbers, status, etc.) instead of just the field it needs.

Thanks a lot for any guidance!

URL:
IjU3NjYwNTY1MDYzNjA0Mzc1MjZjNTUzMDUxMzYi_pc

Bildschirmfoto 2025-08-27 um 15.20.56.png
 
Top