joaquinrojas42
Member
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!
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!