getDocumentURL(c11nEnv)
Obtains the URL for opening documents in the Pega Infinity portal.
Returns
A Promise that resolves to an object.
Parameters
Name | Type | Description | Required |
c11nEnv | object | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API obtains the URL for opening documents in the Pega Infinity portal.
PCore.getAttachmentUtils().getDocumentURL('app/primary_1')
.then(() => {
// success
}).catch(err => {
// errors
});
Previous topic getCaseAttachments(caseID, context) Next topic linkAttachmentsToCase(caseID, attachments, attachmentType, context)