There is a service removeNullFields in the PSUtilites package, use that to remove the null fields from a doc.
Make sure you make a local copy of this service and include it in your test plan before you start using it, as the use of the PSUtilites services directly in prod is not recommended.
hi dear sootienann …the easy way is that after getting result field with null fields again get map step for the flow and just drop null fields in pipeline output field .thanking you …
Drop null won’t pull out strings with empty values will it? ex: “ ” is what I would consider an ‘empty’ string.
When I tried using a $null branch it would remove cases such as
this → "
but not → “ ”
In which case I ended up using a regex pattern to remove all strings with values \r\n\t\s (return, newline, tab, space). Does the flow service removeNullFields in PSUtilities handle both cases above?
removeNullFields is a Java service in the PSUtilities and yes it will handle the white spaces in the input string. Make sure you set the trimFields to true, this will remove the spaces.
can XSLT be used if i want to drop only optional fields which are empty?
because if i drop all empty fields, then validation will fail if mandatory fields are not present.
ideally, i am looking for a single function to drop all fields which :
can XSLT be used if i want to drop only optional fields which are empty?
because if i drop all empty fields, then validation will fail if mandatory fields are not present.
ideally, i am looking for a single function to drop all fields which :