AnsweredAssumed Answered

Trying to map only one occurance of a phone number from Workday Get_Workers request

Question asked by DanielSmith4061 on Jan 21, 2015
Latest reply on Jan 22, 2015 by richard_moon
I am trying to create a map that will only pay attention to one phone_data value in an xml from Workday's Get_Worker api.  Below is a sample of the XML and I only want the phone_data information if following values are met <wd:Type_Data wd:Primary="1"> and <wd:ID wd:type="Communication_Usage_Type_ID">WORK</wd:ID> . I am new to Boomie, so any direction would be appreciated.


<wd:Contact_Data>
 <wd:Phone_Data wd:Formatted_Phone="+1 (770) 555-1212 x1111">
  <wd:Country_ISO_Code>USA</wd:Country_ISO_Code>
  <wd:International_Phone_Code>1</wd:International_Phone_Code>
  <wd:Area_Code>770</wd:Area_Code>
  <wd:Phone_Number>555-1212</wd:Phone_Number>
  <wd:Phone_Extension>111</wd:Phone_Extension>
  <wd:Phone_Device_Type_Reference wd:Descriptor="Landline">
   <wd:ID wd:type="WID">9a166e30dfe3108b4cf2cf1708b420ab</wd:ID>
   <wd:ID wd:type="Phone_Device_Type_ID">Landline</wd:ID>
  </wd:Phone_Device_Type_Reference>
  <wd:Usage_Data wd:Public="1">
   <wd:Type_Data wd:Primary="1">
    <wd:Type_Reference wd:Descriptor="Work">
     <wd:ID wd:type="WID">1f27f250dfaa4724ab1e1617174281e4</wd:ID>
     <wd:ID wd:type="Communication_Usage_Type_ID">WORK</wd:ID>
    </wd:Type_Reference>
   </wd:Type_Data>
  </wd:Usage_Data>
 </wd:Phone_Data>
 <wd:Phone_Data wd:Formatted_Phone="+1 (678) 555-1212 x1111">
  <wd:Country_ISO_Code>USA</wd:Country_ISO_Code>
  <wd:International_Phone_Code>1</wd:International_Phone_Code>
  <wd:Area_Code>678</wd:Area_Code>
  <wd:Phone_Number>555-1212</wd:Phone_Number>
  <wd:Phone_Extension>111</wd:Phone_Extension>
  <wd:Phone_Device_Type_Reference wd:Descriptor="Landline">
   <wd:ID wd:type="WID">9a166e30dfe3108b4cf2cf1708b420ab</wd:ID>
   <wd:ID wd:type="Phone_Device_Type_ID">Landline</wd:ID>
  </wd:Phone_Device_Type_Reference>
  <wd:Usage_Data wd:Public="1">
   <wd:Type_Data wd:Primary="0">
    <wd:Type_Reference wd:Descriptor="Work">
     <wd:ID wd:type="WID">1f27f250dfaa4724ab1e1617174281e4</wd:ID>
     <wd:ID wd:type="Communication_Usage_Type_ID">WORK</wd:ID>
    </wd:Type_Reference>
   </wd:Type_Data>
  </wd:Usage_Data>
 </wd:Phone_Data>
</wd:Contact_Data>
 

Outcomes