cancel
Showing results for 
Search instead for 
Did you mean: 

Copy first source context to target field

Former Member
0 Kudos

Hi,

As I have not worked with the manipulation od contexts very much, I currently have the following problem.

Source message has 5 contexts of a segment <Partner> and the information in the first context needs to go into target field 1 as it is related to a specific type of partner and the other remaining contexts need to go into target field 2.

Therefore my question (albeit a pretty simple one I hope) is how do I detect the first context and move it into target field 1 ??

Thanks

Colin.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

you can use the function "count" to compare:

         
       count
             equalS  
constant(1) /         
                       ifWithoutElse
              partner /

Answers (2)

Answers (2)

Former Member
0 Kudos

Marked by mistake.....

Former Member
0 Kudos

use copyValue function. with specifying index 0(1 st position)

This function will copy 1st value to the target.

partner > removeContext>copyValue (0)-> target field