• 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.

    🖤 BLACK FRIDAY DEALS ARE NOW LIVE! 🖤

    🔥 Enjoy an exclusive 10% discount on our LTD Plan — first-time ever offer!

    🚀 Unlock the Pabbly Plus Unlimited Yearly Plan and get unlimited access to every Pabbly application at a truly unbeatable Black Friday price.

    👉 Grab the Black Friday Offer

Can I reference input variables directly in the Code module without mapping them one by one?

Hi! I'm using the Code (JavaScript) module in a workflow and I currently map input variables one by one like this:

const sub0_media_source = " ";
const sub0_media_image = " ";
const sub0_type = " ";
const sub1_media_source = " ";
const sub1_media_image = " ";
const sub1_type = " ";
// and so on...


Is there a way to access these variables directly from the input data as an object or JSON, without mapping each one manually in the input fields? For example, something like input["sub0_media_source"] inside the code?


It would save a lot of time when dealing with 10+ values. Thanks in advance!

1753627534093.png
 

ArshilAhmad

Well-known member
Staff member
Please disable 'Simple Response', then click on the 'Save & Send Test Request' button to see if that gives you the desired result.
1753659330373.png
 
Top