Make.com LabBeginner
Get the Last Item of an Array with last() in Make.com
A webhook sends a status history array. The current status is always the last entry.
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:
{
"history": ["created", "paid", "shipped"]
}
Press Enter or click Check Answer. +10 XP
β Solution & explanation
last(history)
Output: shipped
last(array) returns the final element without needing to know the array's length.π‘ Pro tip: Equivalent long form: get(history; length(history)).