cancel
Showing results for 
Search instead for 
Did you mean: 

Two inputs for a single output field

Former Member
0 Kudos

Requirement: Generate multiple target segments from two different input fields to same target field

Input:

<Input123

    <Field1:ABC

</Input123

<Input456

    <Field2:DEF

</Input456

<Input456

   <Field2:GHI

</Input456

Output:

<Output

     <ABC

</Output

<Output

     <DEF

</Output

<Output

    <GHI

</Output

Accepted Solutions (1)

Accepted Solutions (1)

Harish
Active Contributor
0 Kudos

Hi,

you just need to duplicate the subtree/field at target side. The field should have max occurrence as unbounded (or equal to how many times it is required).

refer the below screenshot

test result

Former Member
0 Kudos

HI Harish,

The target segment should be repeated with each target value. Thanks.

former_member190293
Active Contributor
0 Kudos

Hi G!

If you have predefined count and names for source segments then use decision given by Harish. You can duplicate target segment in mapping if its occurance is 1..unbounded or 0..unbounded and link each of your source segments/values to according targets.

Regards, Evgeniy.

Harish
Active Contributor
0 Kudos

Yes , you need to duplicate the target field.

Answers (0)