cancel
Showing results for 
Search instead for 
Did you mean: 

Utility - Collection Manipulation

RafalKosinski
Level 2
In this Business Object, there is Action 'Collection Contains Value'. If I use Regex text field of Inputs, I would expect to have all matches in Groups collection of Outputs. Unfortunately it does not work. Do you know why? Or am I wrongly interpret this output?
3 REPLIES 3

John__Carter
Staff
Staff
It's not as advanced as that, you can only supply a literal value.

RafalKosinski
Level 2
Ok, thank you. In the documentation it states: ""This will return true and, if a regular expression was provided, the groups defined in that regex for the first matched value it finds in the collection."" How this can be understood? I would appreciate an example.

John__Carter
Staff
Staff
Apologies, I stand corrected, I hadn't realised that action had been updated. Make a collection with Field1 and Field2, give it 4 rows with values A,4 B,3 C,2 and D,1 Use ([2-9]) as the regex for Field2, and the first match will be 4 Change the Field2 values to 1,2,3,4 and the first match will be 2