How do I get the first object only from an input list?

6
I have a list as an input parameter in my sub-Microflow. I know this list consists of only 1 object. How do I retrieve this single object so I can change it (without using an iterator of course)?
asked
1 answers
6

That isn't possible with standard microflow actions (except using a loop). You can do it with JAVA code, but I advise that you don't expect a list as input parameter but a single object as input parameter.

If you know that it's always one object, then it's not necessary that you use a list as input parameter. In your parent microflow you can check the 'first object only' checkbox in your retrieve action and pass the single object to the sub-microflow.

answered