Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

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!