How can I get outputs data while using api.stream with Filters
Question
I noticed a difference when getting Quote Line Item (QLI) via api.stream()
vs. api.getCalculableLineItemCollection()
.
When getting QLI via api.stream()
, the returned QLI object does not contain Maps of "outputs" and "inputs" (whereas api.getCalculableLineItemCollection()
returns it).
In my case, I need to use Filters so I use stream. Is there any way to get the "outputs" data too while using stream with Filters?
Answer
You can pull the values in fields = ["outputs.MyOutPut.result","inputs.MyInput.value"]
You can also directly construct filters on such values, you do not need to iterate over all items and check them in Groovy.
This applies to the header level too.
Found an issue in documentation? Write to us.