I’m trying to create a filter that skips a route if an array is empty.
The scenario is triggered when someone fills out a form. The from has conditional logic, and based on the form inputs, the form may, or mey not, include one or more arrays of files.
If there are any arrays with files, they should be uploaded to a folder in Google drive.
If the array is empty, there is no need to go through the steps to upload the files and should be filtered out.
In the output bundle from the form trigger an epmty array looks like this:
And an array with files looks like this:
The relevant part of the scenario:
Earlier in the scenario I have merged several arrays from the form into one array using a “set multiple variables” module like this:
The output bundle of the merged arrays looks like this with files:
And like this if the merge results in an empty array:
I have tried to set up the filter like this:
when that did not work, i tried to set up a variable like this:
and the filer like this:
How can I set up the filter to make it work? Any Ideas?
Cheers!