โ11-02-2021 04:59 PM
Hi, I'm looking for some tutorials bcause i'm running into some difficulties.
I need to loop through the output of a call,and for each project call one of the retrieved API endpoints.
For example in the attached output I pickup project Name (TEST 1 ISO Naming), and call the Issues api path (https://developer.api.autodesk.com/issues/v1/containers/00699bbc-ea32-4451-8bb9-6c8962ebfee3/issues)
I can't seem to get the creation of the list, and then pupulating the list and then in a for each call the retrieved API key
โ11-02-2021 05:09 PM
If the output of the call is always a similar data structure could you not provide an example json to workato's inbuilt json parser app?
โ11-02-2021 05:10 PM
Hi Roland can I know what errors did you get while creating the recipe
โ11-02-2021 05:27 PM
I don't think you want the second loop nested in the first one.
I think that's your only issue here?
โ11-02-2021 05:44 PM
Hi Roland, probably you want to create the full list first. Afterwards, you can take the list and - while iterating through it - call the respective API endpoints (synchronously or asynchronously depending on your use case logic). Most likely, you will do that in a separate callable recipe to keep your logic simple and clean.
Additionally, your usage of batch operations needs a closer look. If you wish, we can have a talk about this and see, how your solution can look like. Kind regards, Gernot