cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically count the segment at the target

Former Member
0 Kudos

Can anyone tell me what should be the process to count the segments at the target for eg:

if in the payload there are 3 e1 segment coming as input corresponding to that there are 3 e2 segment being created at the output hence there will be one field in the target structure which should get populated with value 3 becoz 3 e2 segment has got created at the output.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi i want to give thanks to all for their cooperation

Former Member
0 Kudos

either u can use RemoveContext as suggested by santosh or change the context of source may be to root element then use a count function

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Map the input node to remove context and then to node function Count under Statistic and then to the target field.

e1--


> Remove context--


> Count -


> target count field.

Regards

San

there is a Way.