Attachments

Add attached file (from bytes)

Upload a file as an attachment to task item.

Parameters

Parameter

Description

Task app name

Name of Task app in SharePoint (not id)

Task ID

ID of task

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

Task app name

Name of Task app in SharePoint (not id)

Task ID

ID of task

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

Task app name

Name of Task app in SharePoint (not id)

Task ID

ID of task

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

Task app name

Name of Task app in SharePoint (not id)

Task ID

ID of task

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 attached file

Delete an attachment on provided task item.

Parameters

Parameter

Description

Task app name

Name of Task app in SharePoint (not id)

Task ID

ID of task

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.

1000005

File not found.

List attached files

Lists all files attached to specified task item.

Parameters

Parameter

Description

Task app name

Name of Task app in SharePoint (not id)

Task ID

ID of task

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