Cannot fetch additional properties when using FindPeople

I'm using raw SOAP request to get a list of people from GAL in Office365, By default, it returns only basic information about each Persona, when I try to add additional properties, like persona:PhoneNumber or change BaseShape to AllProperties, it returns an error "Invalid shape specification"

How can I get all properties for each Persona using this call? 

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
               xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
   <soap:Header>
      <t:RequestServerVersion Version="Exchange2013" />
   </soap:Header>
   <soap:Body >
      <m:FindPeople>
<m:PersonaShape>
        <t:BaseShape>IdOnly</t:BaseShape>
        <t:AdditionalProperties>
          <t:FieldURI FieldURI="persona:DisplayName"/>
          <t:FieldURI FieldURI="persona:Title"/>
          <t:FieldURI FieldURI="persona:EmailAddress"/>
<t:FieldURI FieldURI="persona:PhoneNumber"/>
        </t:AdditionalProperties>
      </m:PersonaShape>         <m:IndexedPageItemView BasePoint="Beginning" MaxEntriesReturned="100000" Offset="0"/>
         <m:ParentFolderId>
            <t:AddressListId Id="xxxxxxx-xxxx-xxxx-xxxx-xxxxxx"/>
         </m:ParentFolderId>
      </m:FindPeople>
   </soap:Body>
</soap:Envelope>
June 17th, 2015 3:44am

I don't believe FindPeople will return PhoneNumber aggregations so you need to use GetPersona on each Persona to get that detail. You should be able to get everything available using

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
               xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
   <soap:Header>
      <t:RequestServerVersion Version="Exchange2013_SP1" />
   </soap:Header>
   <soap:Body >
      <m:FindPeople>
      <m:PersonaShape>
        <t:BaseShape>Default</t:BaseShape>
        <t:AdditionalProperties>
              <t:FieldURI FieldURI="persona:Attributions"/>
        </t:AdditionalProperties>
       </m:PersonaShape>
         <m:IndexedPageItemView BasePoint="Beginning" MaxEntriesReturned="1000" Offset="0"/>
         <m:ParentFolderId>
            <t:AddressListId Id="xxxxx"/>
         </m:ParentFolderId>
      </m:FindPeople>
   </soap:Body>
</soap:Envelope>
Cheers
Glen

 
Free Windows Admin Tool Kit Click here and download it now
June 17th, 2015 10:15pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics