cancel
Showing results for 
Search instead for 
Did you mean: 

Recipe function return value from Parse JSON

AMacourek
Deputy Chef III
Deputy Chef III

I am creating a recipe function to return a result from an API call.  I have a Parse JSON step, but how do I return the result of this was the output of the recipe function?  I have the schema defined, but I cannot get a datapill from the output of the step.

1 ACCEPTED SOLUTION

rajeshjanapati
Executive Chef I
Executive Chef I

Hi @AMacourek,

If you want to return data from Child recipe to Parent recipe (main recipe).

1. you should call the function recipe with synchronous action only

2. need to define the result schema in fuction-call  recipe trigger.

3. add the step with return data from a recipe function action in recipe function by workato app

4. then you can able to see the data pills in the parent recipe.

hope you got my point?

Screenshot 2026-02-09 121841.pngScreenshot 2026-02-09 122048.png

View solution in original post

4 REPLIES 4

AMacourek
Deputy Chef III
Deputy Chef III

I created a list and added items to the list.  Now, how can I return this list to the output of th recipe?

 

Hi @AMacourek , only the “Return data from a recipe function” step can expose data to the parent Lists you create (Create list / Add item to list) are internal only until you return them.

rajeshjanapati
Executive Chef I
Executive Chef I

Hi @AMacourek,

If you want to return data from Child recipe to Parent recipe (main recipe).

1. you should call the function recipe with synchronous action only

2. need to define the result schema in fuction-call  recipe trigger.

3. add the step with return data from a recipe function action in recipe function by workato app

4. then you can able to see the data pills in the parent recipe.

hope you got my point?

Screenshot 2026-02-09 121841.pngScreenshot 2026-02-09 122048.png

AMacourek
Deputy Chef III
Deputy Chef III

This is what I needed.  I did not set up the schema for the list; I just did a generic list.