Make.com LabBeginner
Get First Item from an Array in Make.com
An HTTP module returns an array of tags. You only want to extract the very first tag in the list using Make's built-in array functions.
Live Execution Simulator
Idle
π₯
Incoming Data
βοΈ
Make.com Node
π―
Next Step
> Ready. Type your expression below and click "Check Answer" to run the node.
Incoming Payload / Data:
{
"tags": ["urgent", "b2b", "paid"]
}
Press Enter or click Check Answer. +10 XP
β Solution & explanation
first(tags)
Output: urgent
first(array) returns the first element of an array. get(array; 1) does the same, but lets you pick any position. Make arrays are 1-based, so position 1 is the first item β unlike JavaScript and n8n, where the first index is 0.π‘ Pro tip: Use last(tags) for the final item, or get(tags; 2) for the second.
Also accepted: get(tags; 1), get(tags;1)