AnsweredAssumed Answered

Use scripting in map with unbounded elements to single element

Question asked by crotty_j on Nov 17, 2016
Latest reply on Nov 18, 2016 by crotty_j

We have a scenario where, within a map, we need to inspect an unbounded element, do some scripting to decide how to set a flag, map the flag to an element that occurs once on the response profile.

 

This is what I want to do  

 

Indicator = “YES”

For each elementOccurence (Request Profile - element unbounded)

{

    if (y == "2" || y == "5"  || y == "8" || z == "9" ){

        if (variable > 1) {

            addressMismatchIndicator = "NO";

            }

    }

}

 

Move Indicator to destination profile.(Response profile - 1 occurrence)

Outcomes