getAttachmentCategories(caseID, type, context)
Obtains the attachment categories linked to a case.
Returns
A Promise that obtains the attachment categories linked to a case.
Parameters
Name | Type | Description | Required |
caseID | string | The ID of the case whose attachment categories must be obtained. | ✅ |
type | string | The type of attachment. | ✅ |
context | string | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API obtains the attachments categories linked to a case whose ID
is W-102
.
PCore.getAttachmentUtils().getAttachmentCategories('W-102', 'file', 'app/primary_1')
.then(attachments => {
// attachments array
}).catch(err => {
// errors
});
Previous topic editAttachment(attachmentID, attachmentMetaData, context) Next topic getCaseAttachments(caseID, context)