top of page
  • Writer's pictureAlex Martinez

4 ways to check if an array contains empty values in DataWeave 2.0

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:

https://blogs.mulesoft.com/dev-guides/check-if-array-contains-empty-values-in-dataweave-2-0/



22 views0 comments
bottom of page