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