I’m trying to pass data from an async JS Object into this Google Sheets API call which is named write_data_3C
So here’s what the API call looks like, and I know that “parts” isn’t what should go inside the brackets, but I don’t know to to pass a variable into the API call.
I’ve been able to write things if they come from a table widget, but this data is coming from async JS objects that are fired off once a submit button is pushed.
The onClick JS runs fine until it gets to the end where I’ve written this: .then((parts) => write_data_3C.run(parts))
So I’m not sure what I’m doing wrong or how Appsmith wants me to approach this task, the only error I get is message:“write_data_3C failed to execute”