4 ways to check if an array contains empty values in DataWeave 2.0
Updated: Jun 22
Mar 15, 2021 | MuleSoft
A while back, I had a use case where I received a field that could contain either an array or a null value. If an array was present, it could have strings (including empty strings) or null values. If any of the values inside the array were empty, I had to completely ignore this field. This means that I had to create a function to check if the field or any of the values inside the array were empty, and ignore the field if that was the case. This blog will explain the four different solutions that I found to resolve this problem.
Read this post here: