Make.com LabBeginner
Get Array Length Count in Make.com
You received an array of attachments in an email. Count how many items are inside the array.
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:
{
"attachments": ["file1.pdf", "file2.png"]
}
Press Enter or click Check Answer. +10 XP
β Solution & explanation
length(attachments)
Output: 2
length(array) returns how many items the array contains. The same function returns the character count when you pass it text.π‘ Pro tip: Use it in a filter, e.g. length(attachments) > 0, to skip bundles that have no files.
Also accepted: length(attachments;)