Drive Connect for Experience Cloud Sites

With the Drive Connect Pro Extension package, you can expose Google Drive files and folders linked to records in your Salesforce Org to Experience Cloud site users.

The Drive Connect Pro Extension package can be installed from the AppExchange. Once you’ve upgraded to a Pro plan and install the extension, you will be able to use the Allow Sharing with Experience Cloud attribute of the Drive Links component in the Lightning App Builder. This attribute enables users in your org to share files or folders linked through the Drive Links component with Experience Cloud site users. Object pages in the Experience Builder can be configured to display these shared links by including the Drive Links component that is provided by the extension.

Users in your org will be able to make linked files or folders viewable by Experience Cloud site users from the Drive Links component. This feature is enabled via a component attribute in the Lightning App Builder.

  1. In the Lightning Record page you would like to edit, drag and drop the Drive Links component onto the page or select the Drive Links component if it’s already on the page layout.
    Drag drive links component to page layout
  2. With the Drive Links component selected on the page layout, check the Allow Sharing with Experience Cloud attribute.
    Allow sharing with Experience Cloud
  3. Click Save, and then go back to the record.
  4. In the dropdown menu next to each linked file or folder, there will be a new option to Share in Experience Cloud. Selecting this option will turn on visibility to this link for Experience Cloud site users.
    Share in Experience Cloud
  5. A Share symbol symbol next to the linked file or folder will indicate that it has been made visible to Experience Cloud site users.
  6. Experience Cloud visibility for a file or folder can be turned off by opening the dropdown menu and selecting Hide from Experience Cloud.
    Hide from Experience Cloud

Configure Automation Drive for setting Experience Cloud sharing

The automation user in your org will be able to make linked files or folders viewable by Experience Cloud site users using flows. For more information on Drive Connect flows, Drive Connect Automation with Record-Triggered Flows.

  1. From the new action modal, select either the operations New Drive Folder or New File from Template.
  2. Click on the check box Share in Experience Cloud
  3. Trigger the flow and you will see that either the generated folder and file will be viewable by experience cloud users if checked. 

The Drive Links component available in the Drive Connect Pro Extension package can be placed on an Experience Cloud site record detail page. The component will display Drive files linked to records if that link has been marked as Visible in Experience Cloud from the base Drive Links component.

  1. From the Builder of your Experience Cloud site, click on the Pages dropdown menu and select the object detail page you would like to add the extension component to.
  2. Open the Lightning Components menu, here you can add the Drive Links component to a page. Please note that if you would like to see a previewer for files that are generated on the experience cloud site you will have the option to by selecting the Drive Links component and toggling on Enable File Previewer.
    1. If you do enable file previewer you will need to go back to Salesforce setup and search for CSP Trusted Sites. You will need to add the following sites:
      1. https://docs.google.com
      2. https://drive.google.com
  3. Click Publish, then click Publish again in the modal to confirm.
    Publish experience
  4. Linked files marked as Viewable by Experience Cloud users will show up in the component.

How it works

Drive Connect creates Content Documents to link files or folders in Google Drive to records in Salesforce. When you link or generate a file with the Drive Links component on a record page, a Content Document pointing to the file in your Google Drive is created and linked to that record. The resulting Content Document Link is used by Salesforce to determine visibility. Exposing Content Documents to Experience Cloud site users can be achieved by going to a Content Document’s share settings in Salesforce and enabling Customer Access.

Customer access

This action sets the visibility on that Content Document Link to “All” giving Experience Cloud site users view access. Drive Connect’s “Share in Experience Cloud” option sets that visibility for the Content Document Link directly from the Drive Links component.