SharePoint2007Provider::GetSiteTypeAndGUIDs

This procedure returns information about the site collection type and the GUIDs of site collection and subsite.

Arguments

Input Arguments Required Description

<target>

Yes

The URL of the Windows SharePoint Services administration site.

<site>

Yes

The URL of the SharePoint site.

Output Arguments Description

<siteType>

The type of the site, either "siteCollection" or "subSite".

<siteGUID>

The globally unique identifier (GUID) of the site collection.

<subSiteGUID>

The GUID of the sub site.

Remarks

No remarks.

Sample Code

Example XML Request

<request> 
   <procedure> 
      <execute namespace="SharePoint2007Provider" procedure="GetSiteTypeAndGUIDs" impersonate="1"> 
         <executeData> 
            <target>https://WSSFE:8080</target> 
            <site>https://WSSFE:8888/sites/Test/Test1</site> 
         </executeData> 
         <after source="executeData" destination="data" mode="merge" /> 
      </execute> 
   </procedure> 
</request>

Example XML Response

<response> 
   <data> 
      <siteGUID>b3bb328c-d9e4-4157-8909-eac6b57e1a34</siteGUID> 
      <subSiteGUID>65a5cb89-1e1e-4329-8187-a52ea59b9b7f</subSiteGUID> 
      <siteType>subSite</siteType> 
   </data> 
</response>

Applies To

SharePoint 2007 Provider for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0