Copy data from a certain instance from a repeatable group to another field outside the group

Hi, I have a repeatable group with contact data (contacttype and emailaddress) and would like to copy the emailadress from a certain contacttype to another field. Is that possible?

I’m currently using the 2023.06 version.

Thanks,
Karo

Hi @karoline-quantum-cell

Yes this is possible. You can use “Having” in the Kernel Language to Filter your Email Addresses from the Repeat or alternatively use the Sematic Index if the ContactType is an Index Field.

As you can see, you need something like

FirstFilledValue(MyRepeat*/Email Having [TypeOfEmail] == [MyRepeat/TypeOfEmail])

If you need more information, we covered this topic in the Monthly Modeling Highlights series in 2023, “Indexing in Repeats”

Monthly Modeling Highlights (on training.geta12.com)

Monthly Modeling Highlights (internal for mgm’ies)

This topic is also covered step-by-step in Step 3 of the Kernel Language Tutorial on docs.geta12.com

Aaaaand… these features are documented in the Kernel Language Documentation, Semantic Index and Filter Operator.

Hi @karoline-quantum-cell,
has your question been answered or do you need further support? If it is solved, please, use the checkbox to mark the solution to your problem so that other users also know what helped in your case.
Thanks in advance!
Denise from the Discourse team