I am using the following steps in my flow service:
Adapter service to retrieve data from a table—output is Tabledata
Loop on TableData/results
Now, there are some fields in the TableData output which may or may not have a value in each iteration of the loop. Say, one such field is AB.
I want to store the TableData field values in another document in each iteration. But I want to store only those fields which have a value.
For this, I am doing the following within the loop for the field AB:
- Branch on TableData/results/AB
Map-Label $null—Don’t map the field to the document. This is for the case when the field has no value.
Map-Label $default—Map the field to the document.
This is the case when the field has a value.
I have to pass this newly formed document to the input of an EDI mapping service.
When I run the flow service, everytime the $default target step gets selected under the branch, irrespective of whether the field AB has a value or not.
The $null target step is never getting selected.
please help me in this regard.
Thanks a lot