deleteAttachment(attachmentID, context)
Deletes an attachment from the case to which it is linked.
Returns
A Promise that deletes an attachment from the case to which it is linked.
Parameters
Name | Type | Description | Required |
attachmentID | string | The ID of the attachment that needs to be deleted. | ✅ |
context | string | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API deletes the attachment whose ID is
123445
.
PCore.getAttachmentUtils().deleteAttachment('123445', 'app/primary_1')
.then(() => {
// success
}).catch(err => {
// errors
});
Previous topic cancelRequest(fileID) Next topic deleteDocument(caseID, documentID, context)