Skip to main content

Hello! Wondering if anyone can help me figure something out - Is it possible to get the whole returned object data and pass that through to a step?

So instead of just returning a specific key - return the whole object and pass that through to another step as a variable?

I’ve tried every variation of {{object__allkeys}} that I can think of

Answering this, as I found the answer out by doing a lot of troubleshooting. In effect, you can get all child keys by using a code step and parsing the stringified JSON. Here’s the code step I used for future reference: 

 

const store = StoreClient(inputData.secret);
const email = inputData.email
const test = await store.get('trello-sync')
var trelloID = JSON.parse(JSON.stringify(test))semail]
return {trelloID} // value === 'world'