Query: Move Email Scenario

I have a scenario that retrieves information from a Data Store and returns several bundles, each containing an array as a result.

I need to create a function for a Set Variable module that loops through all the positions of the array and analyzes the value at each position. If all the values are “Es una factura”, the result should be “true”. If at least one value is different, the result should be “false”.

They Tomas,

the contains() function can be used to check if a value is present inside an array.

Hey Tomas, one way to approach this is to check if the module you’re using to get data from the data store has an inbuilt iterator. If it does, you don’t need to add an iterator module
After that you can use the map() function to get the exact item you want from the array.