We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

BUI: View Attachments

Received Response
33
Views
6
Comments
edited Jan 9, 2019 9:17AM in UI Extensibility 6 comments

Content

Hello all,

Can we view file attachments of contact, incident or any custom objects.

In the document we can get the data only, but i want to view the file. Is this possible?

 export interface IAttachment {
        getName(): string;
        getFileId(): string;
        getType(): string;
        getSize(): string;
    }

    export interface IAttachmentContext {
        getAttachments(): IExtensionPromise<IAttachment[]>;
        getAttachmentsFrom(entityType: string, entityId: string): IExtensionPromise<IAttachment[]>;
        displayAttachmentDialog(): IExtensionPromise<IWorkspaceRecord>;
        uploadAttachment(attachment: IAttachment): IExtensionPromise<IWorkspaceRecord>;
        attachFromUrl(fileName: string, url: string): IExtensionPromise<IWorkspaceRecord>;
    }

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!