Hey Debora,
Thanks for your input, I just want to test my understanding as its possible I'm getting this completely wrong 😂.
I've created a loop to count the number of variables within the collection:
Count(Flow.SubRef)
I've then used update data to create 3 new variables (Flow.SubRef0, Flow.SubRef1, Flow.SubRef2) and matched those to a GetAt(Flow.SubRef,0/1/2)
Flow.SubRef0 = GetAt(Flow.SubRef,0)
Flow.SubRef1 = GetAt(Flow.SubRef,1)
Flow.SubRef2 = GetAt(Flow.SubRef,2)
May not be the clearest explanation so I've attached a screenshot too.
Again, I may have completely mossed the mark with this, but that seemed somewhat logitcal to me.
------------------------------
Joshua Quelch
Technical Support Executive at Air Business Limited
------------------------------
Original Message:
Sent: 10-20-2025 10:28
From: Debora Lopes
Subject: How to map nested data within API call
Hi Joshua,
subs.SubRef (this will be the name of your Output) will be referenced at your flow as a collections, you can set this return to some variable as Task.SubRef or other name you want, and use GetAt(Task.SubRef, 0) to get the firt position in your collection. Collections works like an Array inside architect, including starting the first position as 0.
Also, you can check the lenght of this collections with Count(Task.SubRef) and use in a loop block for exemple.
------------------------------
Debora Lopes
------------------------------
Original Message:
Sent: 10-20-2025 10:08
From: Joshua Quelch
Subject: How to map nested data within API call
Hi Luiz
Thanks for your response, this is all new to me so apologies for stupid questions.
How would I go about splitting the collection down into separate variables that I can then reference in the script?
I want to be able to reference subs.SubRef-0 and subs.SubsRef-1 within my script.
I was reading about using the Update Data block to create a collection but I'm not sure I'm doing it right.
Thansk,
Josh
------------------------------
Joshua Quelch
Technical Support Executive at Air Business Limited
Original Message:
Sent: 10-20-2025 07:46
From: Luiz Rosa
Subject: How to map nested data within API call
Hi Josh
In Architect, nested fields like subs.SubRef are treated as collections. How you handle them depends on your business logic and flow design, usually, it's best to process or format the data in the flow and send only what agents need to the script.
------------------------------
Luiz Rosa
Full stack developer