on ‎2018 Dec 21 8:19 AM
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.

Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.