I have a list where each object is another list, now I need to get to the second list get the object and check if the property is "", " ", null or is the property is missing, let me know how can I do this.
I tried @compares and @equals but both are not working.
1st List - Customer
2nd List - Address
Customer.Address.street == ""
Customer.Address.street == " "
Customer.Address.street = null
During mapping from json the "Customer.Address.street may not even be there, so I need to check all the above 4 conditions.
Assuming you are using a data transform to do the mapping, you can leverage the functions @PropertyExists("street") and @PropertyHasValue(tools, "street"). Actually, @PropertyHasValue(tools, "street") alone may suffice as it checks for the existence of the property on the page as well.
Posted: 2 years ago
Posted: 28 Feb 2020 2:49 EST
Marc Lasserre (MarcLasserre_GCS)
Senior Principal Engineer, Technical Support