Getting a specific items from a collection/list
Comments
-
Hi,
I have an evaluation flow, input has a collection like a list of claim Models, and I need to get a specific claim model from the list matching a ClaimId. What is the effective/easy way to achieve this? I see step like collection Filter, but couldn’t find any help in documentation.decisions to use this step. Or only way to achieve it is through for loop?
Thanks.
-
Hey,
The simplest way is to use Entity Framework in Integration Folder within Decisions.
See below.
[url=https://screencast.com/t/gJYYhs53lc1]https://screencast.com/t/gJYYhs53lc1[/url]Rule collection filter step.
Here is document
[url=https://documentation.decisions.com/rule-collection-filter-step/]https://documentation.decisions.com/rule-collection-filter-step/[/url]Takes in list and outputs list if all “entities” that return true. This is my go to filter step.
Thank you.