Skip to Main Content
Inside Microsoft® Exchange Server 2007 Web Services
book

Inside Microsoft® Exchange Server 2007 Web Services

by David Sterling, Michael Mainer, Ben Spain, Mark Taylor, Huw Upshall
November 2007
Intermediate to advanced content levelIntermediate to advanced
928 pages
26h 9m
English
Microsoft Press
Content preview from Inside Microsoft® Exchange Server 2007 Web Services

File Attachments

Let’s assume that you have an item in your Mailbox that already has a visible file attachment on it. Call GetItem on this item and see what data is returned. Although you could just use the Default base shape, you should always request only the information that you need. So instead, use the IdOnly base shape and request both the item:Attachments and item:HasAttachments property paths via the AdditionalProperties element. This is shown in Example 12-1.

Example 12-1. GetItem with attachments

<GetItem xmlns=".../messages"
         xmlns:t=".../types">
  <ItemShape>
    <t:BaseShape>IdOnly</t:BaseShape>
    <t:AdditionalProperties>
      <t:FieldURI FieldURI="item:Attachments"/>
      <t:FieldURI FieldURI="item:HasAttachments"/>
    </t:AdditionalProperties> </ItemShape> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Exchange Server 2010 Inside Out

Microsoft® Exchange Server 2010 Inside Out

Tony Redmond
Microsoft® Exchange Server 2013 Unleashed

Microsoft® Exchange Server 2013 Unleashed

Rand Morimoto, Michael Noel, Guy Yardeni, Chris Amaris, Andrew Abbate

Publisher Resources

ISBN: 9780735623927Supplemental ContentCatalog PageErrata