You can add a File Preview Carousel to any record page, which provides the ability to view an image of the attachment files on the page. Accounting Seed automatically includes this File Preview Carousel on the Payable page, but it can be added to any record page.
Note: This functionality is only available if you have installed the Summer ’24 release or higher.
In order to view file attachments, complete the three setups that are listed below in this article.
Note: On the Payable object, the first two setups have already been completed as part of the “out of the box” functionality. Therefore, on this object, you will only need to Select the File Types to display in the File Preview Carousel. Additionally, the header text name displays as “Related Documents” instead of “File Preview Carousel.” You can change the header text to any name.
- Add a Default File ID
- Edit the Page to Add the File Preview Carousel
- Select the File Types to display in the File Preview Carousel
Add a Default File ID
Adding this field will allow you to set a default file on the File Preview Carousel. For example, you might upload three attachment files to a Billing record. The Default File ID field will allow you to select one of the attachments as the default file to automatically display in the File Preview Carousel each time you display that Billing record.
- From the object for which you want to add a Default File ID, display a record, such as a Billing, an Account, etc.
- Click the Gear icon and select Edit Object.
- Click Fields & Relationships. Then, click New.
- Select the Text radio button and click Next.
- Enter Default File ID in the Field Label.
- Enter 36 in the Length field.
- Click Next twice.
- Click Save.
Edit the Page to Add the File Preview Carousel
Use the steps below to drag and drop the File Preview Carousel component onto the page layout.
- From the object for which you want to add a File Preview Carousel, display a record, such as a Billing, an Account, etc.
- Click the Gear icon and select Edit Page.
- From the left navigation panel, scroll down to the Custom-Managed section.
- Drag and drop the File Preview Carousel component onto the page layout in a selected insertion point.
- From the right navigation panel, under Store file ID in, search for and select the Default File ID field, which you created above.
- Select the Display file name checkbox to display the file attachment name(s) that will later be added to the record page.
- Select the Show header checkbox to display the header text on the record page.
Note: Remember that you can change the header text to any name. - Click Save.
- Click Activate.
- Assign the default for the Lightning Record Page, as appropriate (Org Default, App Default, etc.).
- Click Next.
- Click Save.
Select the File Types to display in the File Preview Carousel
- Click the Gear icon and select Setup.
- From the Quick Find textbox, enter File Upload.
- Select File Upload and Download Security.
- Click Edit.
- For each File Type (such as, PDF, .DOCX, and.JPG) that you typically add a file attachment, click the drop-down list and select Execute in Browser. That way, you will be able to view an image of the file attachment on the record page in the File Preview Carousel.
- Click Save.
____________________
Summer '24 Release
This article was new with the Summer 24 release.
Comments
0 comments
Please sign in to leave a comment.