Skip to main content
Question

Code Block - use entier output in next code block as input


Hello.  I have a Python Code Block that is running a large call with API.  I had to break up the Code blocks due to the 30 runtime limitation.

I need to feed the entire output as a single JSON into the next code block but it doesn’t provide the entire JSON as an input and is wanting each key/value as an input.

Is there any way around this?  

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

  • Author
  • New
  • 1 reply
  • April 18, 2024

I actually found a solution.

 

json.dumps() to convert the entire json output as a string.

json.loads() to convert it back in the 2nd code block after input.


Todd Harper
Forum|alt.badge.img+8
  • Zapier Expert
  • 197 replies
  • April 18, 2024

I just clicked in here to say “Covert it to a string,” but it looks like you already figured that out :)