cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Logic required for multiple occurance of one source field to different target elements

0 Kudos
478

Hi Experts,

I am having a requirement in mapping below

In my Source structure there is an element say abc with occurance as (0-unbounded) if multiple duplicate elements of abc are receiving from sender system then it should pass to different target elements(four elements say) with in same context as shown below

Explanation:

abc having 0 - Unbounded occurrences.

I want to pass the each value from source to different target elements details of item 1, item 2, item 3, item 4, in separately.

I mean abc ------------ item 1

abc ------------ item 2

abc ------------ item 3

abc ------------ item 4

Regards

Ramana

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
you can use index function.

for example
abc - index \
              - equals \
constant (1) /           \
                           - ifwithoutelse - item1
                      abc /


do the same for item2 with constant (2) and so on
former_member607993
Contributor
0 Kudos

Hi stefan.grube ,

Thanks for your reply.

Index works if there is single element and multiple same sub elements.

In case of multiple elements and sub elements. How do we handle?

Thanks and Regards - Rajesh PS

0 Kudos

Hi Stefan Grube

Thanks for your reply. mapping Logic working fine.

Regards,

Ramana

Answers (1)

Answers (1)

Ryan-Crosby
Active Contributor
0 Kudos

Hi Ramana,

Your requirement is not clear based on how you want to split to the target but a simple SplitByValue with EachValue or ValueChange seems to cover your needs. If that is not the case you would have to be more specific.

Regards,

Ryan Crosby