Create sub folder

Create sub folder

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

Parameters

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

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

Error code

Description

1000

Unspecified error.

Delete folder

Deletes a folder by its relative url.

Parameters

Parameter

Description

Server relative url of folder

An url relative to server, e.g. "/subsite/doclib/folder"

Output

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

Error code

Description

1000

Unspecified error.

1000001

User is not authorized to perform operation.

Get sub folders by relative url

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

Parameter

Description

Server relative url

An url relative to server, e.g. "/subsite/doclib/folder"

Output

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

ItemCount

Name

ServerRelativeUrl

WelcomePage

Errors

Error code

Description

1000

Unspecified error.

List files in folder

Lists all files in a specified folder.

Parameters

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

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

Author

  • Id

  • LoginName

  • Email

  • Title

  • IsSiteAdmin

CheckedOutByUser

  • Id

  • LoginName

  • Email

  • Title

  • IsSiteAdmin

LockedByUser

  • Id

  • LoginName

  • Email

  • Title

  • IsSiteAdmin

ModifiedBy

  • Id

  • LoginName

  • Email

  • Title

  • IsSiteAdmin

CheckInComment

CheckOutType

ContentTag

CustomizedPageStatus

ETag

Exists

Length

Level

MajorVersion

MinorVersion

Name

ServerRelativeUrl

TimeCreated

TimeLastModified

Title

UIVersion

UIVersionLabel

Errors

Error code

Description

1000

Unspecified error.

List files in folder by relative url

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

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

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

Author

  • Id

  • LoginName

  • Email

  • Title

  • IsSiteAdmin

CheckedOutByUser

  • Id

  • LoginName

  • Email

  • Title

  • IsSiteAdmin

LockedByUser

  • Id

  • LoginName

  • Email

  • Title

  • IsSiteAdmin

ModifiedBy

  • Id

  • LoginName

  • Email

  • Title

  • IsSiteAdmin

CheckInComment

CheckOutType

ContentTag

CustomizedPageStatus

ETag

Exists

Length

Level

MajorVersion

MinorVersion

Name

ServerRelativeUrl

TimeCreated

TimeLastModified

Title

UIVersion

UIVersionLabel

Errors

Error code

Description

1000

Unspecified error.

List folders in root of document library

Lists all folders in the root of the Document Library.

Parameters

Parameter

Description

Document Library Name

Name of Document Library in SharePoint (not id)

Output

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

ItemCount

Name

ServerRelativeUrl

WelcomePage

Errors

Error code

Description

1000

Unspecified error.

List sub folders of folder

Lists all subfolders of specified folder.

Parameters

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

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

ItemCount

Name

ServerRelativeUrl

WelcomePage

Errors

Error code

Description

1000

Unspecified error.

Last updated