Solved
Forum Discussion
arvindnsn
6 years agoContributor
That worked wonderful!! Thanks a lot for the help. Much Appreciated.
arvindnsn
5 years agoContributor
@cjhoward18 For other array i tried to use the below function and it is returning 0 for all the indexes. Not sure what mistake i am doing. Please help
$entity.items.map(value => value.extend({‘Data_Ind’:$entity.items.indexOf(value)}))
- j_angelevski3 years agoContributor III
Hi Manzoor ,
You can use the following expression to replace the NULL values with blank in the entity object, assuming it is a flat object.
$entity.mapValues(val => val == null ? "" : val)
This will simply iterate over each value in the entity object, and check if the value is null, if it is, it will return an empty string otherwise it will return the original value.