File management
Last updated
Last updated
Copies a file from a Document Library to another (or the same) Document Library at the same SharePoint site.
Record with information about whether operation failed or not.
Deletes a file in the Document Library. If the file does not exist, the operation is considered succesful.
Record with information about whether operation failed or not.
Gets information about a file provided as a releative url, example: '/subsite1/Shared Documents/file.doc'
Record with information about whether operation failed or not. If succesful, result of operation is stored in Results member
Structure of Results Results
Author
Id
LoginName
Title
IsSiteAdmin
CheckedOutByUser
Id
LoginName
Title
IsSiteAdmin
LockedByUser
Id
LoginName
Title
IsSiteAdmin
ModifiedBy
Id
LoginName
Title
IsSiteAdmin
CheckInComment
CheckOutType
ContentTag
CustomizedPageStatus
ETag
Exists
Length
Level
MajorVersion
MinorVersion
Name
ServerRelativeUrl
TimeCreated
TimeLastModified
Title
UIVersion
UIVersionLabel
Lists all files at the root of a Document Library
Record with information about whether operation failed or not. If succesful, result of operation is stored in Results member
Structure of Results Results
Author
Id
LoginName
Title
IsSiteAdmin
CheckedOutByUser
Id
LoginName
Title
IsSiteAdmin
LockedByUser
Id
LoginName
Title
IsSiteAdmin
ModifiedBy
Id
LoginName
Title
IsSiteAdmin
CheckInComment
CheckOutType
ContentTag
CustomizedPageStatus
ETag
Exists
Length
Level
MajorVersion
MinorVersion
Name
ServerRelativeUrl
TimeCreated
TimeLastModified
Title
UIVersion
UIVersionLabel
Moves a file from a Document Library to another (or the same) Document Library at the same SharePoint site.
Record with information about whether operation failed or not.
Record with information about whether operation failed or not.
Parameter
Description
Source Document Library Name
Name of source Document Library in SharePoint to copy file from
Source filename
Remote filename in Document Library, including any extensions or folders if applicable. E.g. "file.txt" or "subfolder1/subfolder2/file.txt" to move
Destination Document Library Name
Name of target Document Library in SharePoint to copy file to
Destination filename
Name of file in destination Document Library
Overwrite
Specifies whether to overwrite destination file if it already exists
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
Error code
Description
1000
Unspecified error.
1000001
User is not authorized to perform operation.
Parameter
Description
Document Library Name
Name of Document Library in SharePoint (not id)
Filename
Remote filename in Document Library, including any extensions or folders if applicable. E.g. "file.txt" or "subfolder1/subfolder2/file.txt" to move
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
Error code
Description
1000
Unspecified error.
1000001
User is not authorized to perform operation.
Parameter
Description
Document Library Name
Name of Document Library in SharePoint (not id)
Filename
Remote filename in Document Library, including any extensions or folders if applicable. E.g. "file.txt" or "subfolder1/subfolder2/file.txt"
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
Record variable containing the results of operation
Error code
Description
1000
Unspecified error.
Parameter
Description
Document Library Name
Name of Document Library in SharePoint (not id)
Populate user members
Specifies whether to populate members that relates to SharePoint users, e.g. Author.
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
Error code
Description
1000
Unspecified error.
Parameter
Description
Source Document Library Name
Name of source Document Library in SharePoint to move file from
Source filename
Remote filename in Document Library, including any extensions or folders if applicable. E.g. "file.txt" or "subfolder1/subfolder2/file.txt" to move
Destination Document Library Name
Name of target Document Library in SharePoint to move file to
Destination filename
Name of file in destination Document Library
Move operations
Specifies move options.
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
Error code
Description
1000
Unspecified error.
1000001
User is not authorized to perform operation.
Parameter
Description
Server relative url
An url relative to server, e.g. "/subsite/doclib/folder/file.txt".
Field name
Name of field or column
New value
The new value to set on field
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
Error code
Description
1000
Unspecified error.