SharePoint2007Provider::GetAttachments
This procedure returns the URLs for all attachments to a specified item in a SharePoint list.
Arguments
Input Arguments | Required | Description |
---|---|---|
<target> |
Yes |
The URL of the Windows SharePoint Services administration site. |
<siteGUID> |
Yes |
The globally unique identifier (GUID) of the Windows SharePoint Services site collection. |
<subSiteGUID> |
Yes |
The GUID of the subsite. |
<list> |
Yes |
Either the name of the list or the GUID of the list enclosed in curly braces ({}). |
<itemId> |
Yes |
An integer specifying the identifier (ID) of the item. |
Remarks
No remarks.
Sample Code
Example XML Request
<request>
<procedure>
<execute namespace="Sharepoint2007Provider" procedure="GetAttachments" impersonate="1">
<executeData>
<target>https://WSSFE:8080</target>
<siteGUID>94027460-7149-4624-9395-6607b5d02bd1</siteGUID>
<subSiteGUID>e28e0766-c0a6-4362-9cb3-fe6aa5dedfab</subSiteGUID>
<list>Tasks</list>
<itemId>1</itemId>
</executeData>
<after source="executeData" destination="data" mode="merge" />
</execute>
</procedure>
</request>
Example XML Response
This call returns an array of URL's for the contained attachments.
<response>
<data>
<attachments>
<attachment url="https://wssfe:8888/sites/Test/Lists/Tasks/Attachments/1/1.txt"/>
<attachment url="https://wssfe:8888/sites/Test/Lists/Tasks/Attachments/1/2.txt"/>
</attachments>
</data>
</response>
Applies To
Hosted Messaging and Collaboration version 4.5
Hosted Messaging and Collaboration version 4.0