GM - Cloud File Viewer (Beta)
(gmpkg:cloudFileViewerLWC)
Documentation
GM - Cloud File Viewer (Beta) component previews an external file referenced through Files Connect (SharePoint, Google Drive, Dropbox, Box, Amazon S3, ShareFile) directly on the File record page. The viewer displays the file title with its external data source, and the Download and Open buttons to get the file or open it in the storage provider.
Use case: Preview a SharePoint document from its Salesforce File record page without leaving Salesforce. See File Explorer - File Connect.
Specification
Property
Type
Description
recordId
String
recordId of the file (ContentDocument) to preview. Keep this empty if you want to use the current record.
API Reference
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>65.0</apiVersion>
<isExposed>true</isExposed>
<masterLabel>GM - Cloud File Viewer (Beta)</masterLabel>
<description>GM - Cloud File Viewer</description>
<targets>
<target>lightning__RecordPage</target>
</targets>
<targetConfigs>
<targetConfig targets="lightning__RecordPage">
<property
name="recordId"
type="String"
label="recordId"
description="recordId to use. Keep this empty if you want to use the current record"
/>
</targetConfig>
</targetConfigs>
</LightningComponentBundle>Was this helpful?