Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Conditional Mapping in OIC — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Conditional Mapping in OIC

Accepted answer
35
Views
17
Comments
edited Jul 26, 2019 1:22PM in Integration 17 comments

Summary

Issue in conditional Map

Content

Hi Team,
      Below is the input XML structure which i am trying to have conditional mapping.
<Phone_Hierarchy>
   <Phone_Details>
      <Phone_Info>
         <Phone_Primary_ID>test</Phone_Primary_ID>
         <Phone_ID>test</Phone_ID>
         <Phone_Number>978-5567</Phone_Number>
       </Phone_Info>
    </Phone_Details>
    <Phone_Details>
       <Phone_Info>
          <Phone_Primary_ID>test</Phone_Primary_ID>
          <Phone_ID>test1</Phone_ID>
          <Phone_Number>9728524522</Phone_Number>
       </Phone_Info>
     </Phone_Details>
</Phone_Hierarchy>
 

The CONDITION CHECK IS: 

  if Phone_Primary_ID == Phone_ID then map Phone_Number else empty element.
  
  below is the looping which i tried
  
  for each of Phone_Details

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!