Skip to main content
Skip table of contents

cancelUpload ()

This method is used to cancel attachment upload operation.
List<ResultObject> cancelUpload(List<ID> wipIds, String objectId)
Parameters:
wipIds: List of Salesforce.com IDs of attachment "file" records.
objectId: Id of the parent object. You can use 15-character or 18-character Salesforce.com ID.
Return Value: The method will return a list of ResultObject (Figure 127) which holds cancel status information for each file record.
Example code:

CODE
List<Id>wipIds = new List<Id>();
wipIds.add(ID.valueOf(uploadRequestInfos .fileWipId));
List<cg.ResultObject>resultObjects = cg.SDriveTools.cancelUpload(wipIds, objectId);


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.