Attachments
Add, delete and list
Add attached file (from bytes)
Upload a file as an attachment to task item.
Parameters
Parameter | Description |
Custom List app name | Name of Custom List app in SharePoint (not id) |
Item ID | ID of item |
Remote filename | Remote filename |
Source bytes | Table (consisting of bytes) to read from |
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. |
1000004 | Item with given id does not exist. |
Add attached file (from file system)
Upload a file as an attachment to task item.
Parameters
Parameter | Description |
Custom List app name | Name of Custom List app in SharePoint (not id) |
Item ID | ID of item |
Remote filename | Remote filename |
Local filename | Full path to file to upload. Note that the user the application pool running Flow Server must have access to the file. |
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. |
1000004 | Item with given id does not exist. |
Add attached file (from stream)
Upload a file as an attachment to task item.
Parameters
Parameter | Description |
Custom List app name | Name of Custom List app in SharePoint (not id) |
Item ID | ID of item |
Filename | Remote filename |
Source stream | Simple variable containg a stream |
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. |
1000004 | Item with given id does not exist. |
Delete all attached files
Delete all attachments on provided task item.
Parameters
Parameter | Description |
Custom List app name | Name of Custom List app in SharePoint (not id) |
Item ID | ID of item |
Filename | Remote filename |
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. |
1000004 | Item with given id does not exist. |
Delete all attached files
Delete all attachments on provided task item.
Parameters
Parameter | Description |
Custom List app name | Name of Custom List app in SharePoint (not id) |
Item ID | ID of item |
Filename | Remote filename |
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. |
1000004 | Item with given id does not exist. |
List attached files
Lists all files attached to specified item.
Parameters
Parameter | Description |
Custom List app name | Name of Custom List app in SharePoint (not id) |
Item ID | ID of item |
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
Filename
ServerRelativeUrl
Errors
Error code | Description |
1000 | Unspecified error. |
1000001 | User is not authorized to perform operation. |
1000004 | Item with given id does not exist. |
Last updated