I'm trying to run a loop a function that then loops an array passed to the function. All the individual parts seem to work, but when I run it I get a null return for everything. I can't figure out where the issue is or how to tell if the array is getting passed to the function correctly, or if I'm just trying to do something wrong
It looks like you are sending the full array body of code3's output to your createEventFunction code. It appears you just want to send the inner array of each item from code3, which would need to take the form of {{ value[i] }}
This way loop3 is looking at each of the 17 items (value in the loop block) in the top level array and sending each subset of arrays ( from the code3 return code3.data[0] => an array with 1 item, which has 8 keys) as the data to pass on.
create a new function called "PostNewEvent" to create the REST request, then change the loop runner from 'Google Calendar Service' to 'Run JS Code' to call and return results:
Still had issues with loop3 and wasn't getting any logs. recreated loop3 like you suggest I do with loop1 in the function, and that seems to work better. Seems like maybe there is a problem with looping a multistep function?
Wanted to check in if you are still experiencing this issue with your workflow.
From your last screen shot, what is the intended behavior you are looking to get? Are you taking the output of code3, passing it to loop3's sub-workflow and then looking to get that data returned back to the top level workflow?
Just echoing the above - let us know if you still need assistance with this, @Peter_Kunz! I've definitely observed some flakiness with the way the loop runner interacts with multistep functions, but believe that most of those interactions should be fixed by now. That said, there's no reason not to run a script in the loop, instead!