How to set an array containing one attribute from multiple bundles | Community
Skip to main content
Level 2
April 4, 2025
Solved

How to set an array containing one attribute from multiple bundles

  • April 4, 2025
  • 1 reply
  • 590 views

Hi, I am still trying to wrap my head around the way fusion handles variable creation namely arrays (coming from NodeJS).

I am fetching all documents from one issue, and for each document I am fetching the proof information for each version. I am only interested in checking the proofDecision of the last version of each document; I am trying to set a variable (an array) that would store the proofDecision of the last version of each document.

 

This is the scenario currently; my aim would be to have an array of collections with all the information from each operation/bundle in it.

 

Any help would be appreciated.

 

Thanks in advance

Best answer by cverges

Fusion (make.com) uses a pass-by-value mechanism.  As such, you need to create an array object inside a Set Variable using the {{emptyarray}} syntax before the iterator, then use a Get Variable inside the iterator followed by a Set Variable to "override" the variable with the appended array.

1 reply

cvergesAccepted solution
Level 5
April 4, 2025

Fusion (make.com) uses a pass-by-value mechanism.  As such, you need to create an array object inside a Set Variable using the {{emptyarray}} syntax before the iterator, then use a Get Variable inside the iterator followed by a Set Variable to "override" the variable with the appended array.

JoaoMotaAuthor
Level 2
April 4, 2025

Thank you so much for this concise and great explanation. I was able to get it to work as I wanted.