UPDATED TO BE MORE CONCISE
Hello, I'm looking for assistance with a recursive function that's not returning the expected values from a JSON object. The goal is to retrieve all "Flow" object IDs where the "Type" is either "Standard" or "Block". These objects may be nested within multiple "Flow" objects under a parent "Flow", hence the need for recursion. You can view the code on CodePen here:
The function, named "GroupRecursion", takes the JSON "Payload" as input and should populate an array called ArrayOfBlockIDs with 4 strings representing the desired IDs. Currently, only 3 IDs are being captured instead of the expected 4. Any assistance would be greatly appreciated!
//