cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Map structure against single value - SAP Cloud Platform Integration

former_member197479
Active Participant
0 Likes
1,061

Hello Experts,

I'm currently experiencing some issues with a message mapping in SAP Cloud Platform Integration, basically I have an XML that looks like this:

        <javascript_variables>
            <name>name</name>
            <value>Juan</value>
        </javascript_variables>
        <javascript_variables>
            <name>NumSuscriptor</name>
            <value>8000000</value>
        </javascript_variables>
        <javascript_variables>
            <name>email</name>
            <value>correo@correo.com</value>
        </javascript_variables>
        <javascript_variables>
            <name>description</name>
            <value>alsoValue</value>
        </javascript_variables>


As you can see, those javascript_variables contain both name and value underneath, what I am trying to accomplish is the following: My target message has, let's say a BuyerID where I want to assign the value of the tag, where the name is equals to 'NumSuscriptor', that's the condition that makes the difference between assign it to the BuyerID, or to the Email target tag, for instance.

Within the Message Mapping I'm trying to do the following, validate if name == 'NumSuscriptor' then assign the Value, but it just doesn't work.

View Entire Topic
apu_das2
Active Contributor
0 Likes

As Sriprasad said, Check the context once.

I guess, current context of name is element . You can use remove context just after name and before equals. It should work.

Thanks,

Apu Das