SharePoint OData Connector 26.1
SharePoint OData Connector Help

# Insert a Site

To insert a site, your `insertXml` must include the following properties:

`TYPE` | The type of item to insert. To insert a site, specify `SITE`.
`TITLE` | The title to use for the site.
`URL` | The parent relative URL of the site.

You must then specify either (`SITEID` and `SITECOLLECTIONURL`) or (`INSERTFROMPATH` and `SITEURL`):

`INSERTFROMPATH` | To insert a site by path, set this to `TRUE`.
`SITECOLLECTIONURL` | The absolute URL of the site collection into which you want to insert the site.
`SITEID` | The GUID of the parent site.
`SITEURL` | The absolute URL of the parent site.

The following properties are optional:

`DESCRIPTION` | A description of the site.

For example, the value of your `insertXML` action parameter might look like this:

    <insertXML>
      <insert>
        <reference>TEST_SITE</reference>
        <property name="TYPE" value="SITE"/>
        <property name="TITLE" value="My New Site"/>
        <property name="URL" value="MyNewSite"/>
        <property name="SITECOLLECTIONURL" value="http://sharepoint/SiteCollection/"/>
        <property name="SITEID" value="AF1F1E11526FFA45"/>
        <property name="DESCRIPTION" value="My Inserted Site"/>
      </insert>
    </insertXML>

To insert a site by path, your XML might look like this:

    <insertXML>
      <insert>
        <reference>TEST_SITE</reference>
        <property name="TYPE" value="SITE"/>
        <property name="TITLE" value="My New Site"/>
        <property name="URL" value="MyNewSite"/>
        <property name="SITEURL" value="http://sharepoint/SiteCollection/"/>
        <property name="INSERTFROMPATH" value="TRUE"/>
        <property name="DESCRIPTION" value="My Inserted Site"/>
      </insert>
    </insertXML>

Copyright 2025 Open Text
Version 26.1 | Last updated January 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery SharePoint OData Connector 26.1

Topic Title: Insert a Site