Method StartFileTransactionFileAttachment
StartFileTransactionFileAttachment(String, String, String)
Starting a new file transaction for a attachment. Download the file with the method GetTempFile. Call ReleaseFile to end transaction.
Declaration
FileTransactionResultContract StartFileTransactionFileAttachment(string connectionId, string fileId, string attachmentId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | fileId | The file id. |
System.String | attachmentId | The attachment id. See also Attachments |
Returns
Type | Description |
---|---|
FileTransactionResultContract | Return a file transaction result. |
Examples
POST http://YourServerName/InfoShare/Json/File/StartFileTransactionFileAttachment
Example for start file transaction.{
"connectionId": "bbf760ba-6bdb-45b6-9eec-992669fc7359",
"fileId": "89dcf0ba-9c19-485b-bc0a-e8b5666866fa",
"attachmentId":"02c90715-040d-02c8-100a-c6020e05c502"
}
Response:
{
"StartFileTransactionAttachmentResult": {
"AttachmentId": "02c90715-040d-02c8-100a-c6020e05c502",
"DocumentDataId": null,
"DocumentId": "null",
"FileId": "89dcf0ba-9c19-485b-bc0a-e8b5666866fa",
"RenditionId": null,
"VersionId": null
}
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Attachment not found {attachmentId} (10267) |