# Create sub folder

### Create sub folder

Creates a new folder beneth specfied folder. If the folder already exists, the operations is considered succesful

#### Parameters <a href="#parameters" id="parameters"></a>

| Parameter             | Description                                                                     |
| --------------------- | ------------------------------------------------------------------------------- |
| Document Library Name | Name of Document Library in SharePoint (not id)                                 |
| Parent folder         | Name of folder to create sub folders in. E.g. "folder1" or "folder1/subfolder2" |
| Name of sub folder    | Name of folder to create                                                        |

#### Output <a href="#output" id="output"></a>

Record with information about whether operation failed or not.

| Member       | Description                                                            |
| ------------ | ---------------------------------------------------------------------- |
| HasFailed    | Whether operation has failed or not                                    |
| ErrorMessage | A description of the failure, if any                                   |
| ErrorCode    | An error code related to operation failure. Is 0 if no failure occured |

#### Errors <a href="#errors" id="errors"></a>

| Error code | Description        |
| ---------- | ------------------ |
| 1000       | Unspecified error. |

### Delete folder <a href="#delete-folder" id="delete-folder"></a>

Deletes a folder by its relative url.

#### Parameters <a href="#parameters" id="parameters"></a>

| Parameter                     | Description                                              |
| ----------------------------- | -------------------------------------------------------- |
| Server relative url of folder | An url relative to server, e.g. "/subsite/doclib/folder" |

#### Output <a href="#output" id="output"></a>

Record with information about whether operation failed or not.

| Member       | Description                                                            |
| ------------ | ---------------------------------------------------------------------- |
| HasFailed    | Whether operation has failed or not                                    |
| ErrorMessage | A description of the failure, if any                                   |
| ErrorCode    | An error code related to operation failure. Is 0 if no failure occured |

#### Errors <a href="#errors" id="errors"></a>

| Error code | Description                                  |
| ---------- | -------------------------------------------- |
| 1000       | Unspecified error.                           |
| 1000001    | User is not authorized to perform operation. |

### Get sub folders by relative url <a href="#get-subfolders-by-relative-url" id="get-subfolders-by-relative-url"></a>

Lists all subfolders of specified folder provided by relative url. Useful for instance if you got a Record containg folder information including its relative url and want to list the sub folders of that folder.

#### Parameters <a href="#parameters" id="parameters"></a>

| Parameter           | Description                                              |
| ------------------- | -------------------------------------------------------- |
| Server relative url | An url relative to server, e.g. "/subsite/doclib/folder" |

#### Output <a href="#output" id="output"></a>

Record with information about whether operation failed or not. If succesful, result of operation is stored in Results member

| Member       | Description                                                            |
| ------------ | ---------------------------------------------------------------------- |
| HasFailed    | Whether operation has failed or not                                    |
| ErrorMessage | A description of the failure, if any                                   |
| ErrorCode    | An error code related to operation failure. Is 0 if no failure occured |
| Results      | Table variable containing the results of operation                     |

Structure of Results Results

&#x20;ItemCount

&#x20;Name

&#x20;ServerRelativeUrl

&#x20;WelcomePage

#### Errors <a href="#errors" id="errors"></a>

| Error code | Description        |
| ---------- | ------------------ |
| 1000       | Unspecified error. |

### List files in folder <a href="#list-files-in-folder" id="list-files-in-folder"></a>

Lists all files in a specified folder.

#### Parameters <a href="#parameters" id="parameters"></a>

| Parameter                | Description                                                                                            |
| ------------------------ | ------------------------------------------------------------------------------------------------------ |
| Document Library Name    | Name of Document Library in SharePoint (not id)                                                        |
| Folder                   | Remote folder in Document Library, can include sub folders if applicable. E.g. "subfolder1/subfolder2" |
| Populate user properties | Specifies whether to populate members that relates to SharePoint users, e.g. Author                    |

#### Output <a href="#output" id="output"></a>

Record with information about whether operation failed or not. If succesful, result of operation is stored in Results member

| Member       | Description                                                            |
| ------------ | ---------------------------------------------------------------------- |
| HasFailed    | Whether operation has failed or not                                    |
| ErrorMessage | A description of the failure, if any                                   |
| ErrorCode    | An error code related to operation failure. Is 0 if no failure occured |
| Results      | Table variable containing the results of operation                     |

Structure of Results Results

&#x20;Author

* &#x20;Id
* &#x20;LoginName
* &#x20;Email
* &#x20;Title
* &#x20;IsSiteAdmin

&#x20;CheckedOutByUser

* &#x20;Id
* &#x20;LoginName
* &#x20;Email
* &#x20;Title
* &#x20;IsSiteAdmin

&#x20;LockedByUser

* &#x20;Id
* &#x20;LoginName
* &#x20;Email
* &#x20;Title
* &#x20;IsSiteAdmin

&#x20;ModifiedBy

* &#x20;Id
* &#x20;LoginName
* &#x20;Email
* &#x20;Title
* &#x20;IsSiteAdmin

&#x20;CheckInComment

&#x20;CheckOutType

&#x20;ContentTag

&#x20;CustomizedPageStatus

&#x20;ETag

&#x20;Exists

&#x20;Length

&#x20;Level

&#x20;MajorVersion

&#x20;MinorVersion

&#x20;Name

&#x20;ServerRelativeUrl

&#x20;TimeCreated

&#x20;TimeLastModified

&#x20;Title

&#x20;UIVersion

&#x20;UIVersionLabel

#### Errors <a href="#errors" id="errors"></a>

| Error code | Description        |
| ---------- | ------------------ |
| 1000       | Unspecified error. |

### List files in folder by relative url <a href="#list-files-in-folder-by-relative-url" id="list-files-in-folder-by-relative-url"></a>

Lists all files in a folder specified by relative url. Useful for instance if you got a Record containg folder information including its relative url and want to list those files.

#### Parameters <a href="#parameters" id="parameters"></a>

| Parameter                | Description                                                                         |
| ------------------------ | ----------------------------------------------------------------------------------- |
| Server relative url      | An url relative to server, e.g. "/subsite/doclib/folder".                           |
| Populate user properties | Specifies whether to populate members that relates to SharePoint users, e.g. Author |

#### Output <a href="#output" id="output"></a>

Record with information about whether operation failed or not. If succesful, result of operation is stored in Results member

| Member       | Description                                                            |
| ------------ | ---------------------------------------------------------------------- |
| HasFailed    | Whether operation has failed or not                                    |
| ErrorMessage | A description of the failure, if any                                   |
| ErrorCode    | An error code related to operation failure. Is 0 if no failure occured |
| Results      | Table variable containing the results of operation                     |

Structure of Results Results

&#x20;Author

* &#x20;Id
* &#x20;LoginName
* &#x20;Email
* &#x20;Title
* &#x20;IsSiteAdmin

&#x20;CheckedOutByUser

* &#x20;Id
* &#x20;LoginName
* &#x20;Email
* &#x20;Title
* &#x20;IsSiteAdmin

&#x20;LockedByUser

* &#x20;Id
* &#x20;LoginName
* &#x20;Email
* &#x20;Title
* &#x20;IsSiteAdmin

&#x20;ModifiedBy

* &#x20;Id
* &#x20;LoginName
* &#x20;Email
* &#x20;Title
* &#x20;IsSiteAdmin

&#x20;CheckInComment

&#x20;CheckOutType

&#x20;ContentTag

&#x20;CustomizedPageStatus

&#x20;ETag

&#x20;Exists

&#x20;Length

&#x20;Level

&#x20;MajorVersion

&#x20;MinorVersion

&#x20;Name

&#x20;ServerRelativeUrl

&#x20;TimeCreated

&#x20;TimeLastModified

&#x20;Title

&#x20;UIVersion

&#x20;UIVersionLabel

#### Errors <a href="#errors" id="errors"></a>

| Error code | Description        |
| ---------- | ------------------ |
| 1000       | Unspecified error. |

### List folders in root of document library <a href="#list-folders-in-root-of-document-library" id="list-folders-in-root-of-document-library"></a>

Lists all folders in the root of the Document Library.

#### Parameters <a href="#parameters" id="parameters"></a>

| Parameter             | Description                                     |
| --------------------- | ----------------------------------------------- |
| Document Library Name | Name of Document Library in SharePoint (not id) |

#### Output <a href="#output" id="output"></a>

Record with information about whether operation failed or not. If succesful, result of operation is stored in Results member

| Member       | Description                                                            |
| ------------ | ---------------------------------------------------------------------- |
| HasFailed    | Whether operation has failed or not                                    |
| ErrorMessage | A description of the failure, if any                                   |
| ErrorCode    | An error code related to operation failure. Is 0 if no failure occured |
| Results      | Table variable containing the results of operation                     |

Structure of Results Results

&#x20;ItemCount

&#x20;Name

&#x20;ServerRelativeUrl

&#x20;WelcomePage

#### Errors <a href="#errors" id="errors"></a>

| Error code | Description        |
| ---------- | ------------------ |
| 1000       | Unspecified error. |

### List sub folders of folder <a href="#list-subfolders-of-folder" id="list-subfolders-of-folder"></a>

Lists all subfolders of specified folder.

#### Parameters <a href="#parameters" id="parameters"></a>

| Parameter             | Description                                                         |
| --------------------- | ------------------------------------------------------------------- |
| Document Library Name | Name of Document Library in SharePoint (not id)                     |
| Folder                | Name of folder to list sub folders of. E.g. "subfolder1/subfolder2" |

#### Output <a href="#output" id="output"></a>

Record with information about whether operation failed or not. If succesful, result of operation is stored in Results member

| Member       | Description                                                            |
| ------------ | ---------------------------------------------------------------------- |
| HasFailed    | Whether operation has failed or not                                    |
| ErrorMessage | A description of the failure, if any                                   |
| ErrorCode    | An error code related to operation failure. Is 0 if no failure occured |
| Results      | Table variable containing the results of operation                     |

Structure of Results Results

&#x20;ItemCount

&#x20;Name

&#x20;ServerRelativeUrl

&#x20;WelcomePage

#### Errors <a href="#errors" id="errors"></a>

| Error code | Description        |
| ---------- | ------------------ |
| 1000       | Unspecified error. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.novacuraflow.com/6.12/development/flow-studio/connectors/business-systems/microsoft-sharepoint-2013/generic-operations/document-library/create-sub-folder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
