gautamsi / ews-javascript-api

EWS API for TypeScript/JavaScript - ported from OfficeDev/ews-managed-api - node, cordova, meteor, Ionic, Electron, Outlook Add-Ins
MIT License
282 stars 73 forks source link

Add FindPeople operation #253

Open lorenc-tomasz opened 6 years ago

lorenc-tomasz commented 6 years ago

Add FindPeople operation.

Example implementation: https://github.com/OfficeDev/ews-managed-api/commit/45459165001657f3db7d92d094b960d3abec390f

brockoli commented 6 years ago

I also need FindPeople and GetPersona for a project I'm working on. We've been able to get by with the functionality that ews-javascript-api provides so far, but now we need to support lync 2013 and the contact/group management through the skype javascript SDK is severely lacking there. What are the chances these two operations could be added within the next 2 months? I need to figure out if we can continue using this library or if we have to start budgeting to implement our own against the EWS soap API.

mniesen commented 3 days ago

I would also realy like to have this function in ews-javascript-api.

This is an example soap request.

<?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:AdditionalProperties>
      </m:PersonaShape>
      <m:IndexedPageItemView BasePoint="Beginning" MaxEntriesReturned="100" Offset="0"/>
      <m:ParentFolderId>
        <t:DistinguishedFolderId Id="directory"/>
      </m:ParentFolderId>
      <m:QueryString>SMTP</m:QueryString>
    </m:FindPeople>
  </soap:Body>
</soap:Envelope>