copy
Used for content that is associated to Document objects to copy content from one Document object to another.
All instance level security is adhered to. For example, if the user does not have permission to read or write to the record, an AccessException error occurs.
Parameters
- fromRecordId
- The record ID of the Document object that you want to copy.
- toRecordId
- The record ID of the Document object that you want to copy to.
Errors
- InvalidDocumentTypeException
- The record ID is not that of a document type.
- NotFoundException
- Either the record or the destination record cannot be found.
- RemoteException
- A system error occurred.
- RecordDoesNotExistException
- The record does not exist.
- ContentException
- An error occurred with the stream or checksum.
- AccessException
- The user does not have access to read the record or write to the destination record.
Sample request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.tririga.com">
<soapenv:Header/>
<soapenv:Body>
<ws:copy>
<ws:fromRecordId>292814</ws:fromRecordId>
<ws:toRecordId>1488269</ws:toRecordId>
</ws:copy>
</soapenv:Body>
</soapenv:Envelope>
Sample response
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<copy xmlns="http://ws.tririga.com">
<response>Success</response>
</copy>
</soap:Body>
</soap:Envelope>