How to add values from each item in repeating group to custom state


I have a repeating group that displays multiple records. Each record contains a field ‘code’ from a custom data type. I want to implement a button outside the repeating group that - when pressed - retrieves all codes from the records and adds them in a list in a custom state. How can I implement a workflow that does this? So after pressing the button the content of the custom state is a list of codes.

Thanks in advance, Rob

When button is pressed
Set state to
Repeating group records each items Code

Got it, tried it but there was a mismatch between data types between the state and the database fields. Thanks!

1 Like

@robdehaan Have you been able to finish this job?

@maheshkasindi Can I ask you for a more detailed answer? For some reason I can’t use the method you mentioned…

Sure thing
Whats the issue you’re facing?