Document Management & Sharing
...
Setup
Add Widget to Experience Cloud
the cloudfiles widget lets experience cloud users view and work with cloudfiles connected files and folders directly on an experience cloud page where you place the widget determines what content it displays—for example, record related files on a record page or shared library content on a home or custom page record page on experience cloud record pages, you can add the cloudfiles community widget to display the files and folders linked to the current salesforce record after adding the widget in experience builder , configure the component properties as follows record id {!recordid} object name api name of the object (for example, lead or case ) this ensures the widget loads the correct record related content for experience cloud users home page or custom page you may want to show cloudfiles content on an experience cloud home page or custom page, where the widget is not tied to a specific salesforce record this is useful when external users should see a shared folder or library content as soon as they log in (for example, customer documents or partner resources) after adding the cloudfiles community widget in experience builder , configure the component properties like this record id – set this to the logged in user context for example {!currentuser id} (or {!currentuser accountid} if you want to load content based on the user’s account) you can find the list of all expressions available on a experience site page https //help salesforce com/s/articleview?id=sf siteforce communities data code reference htm\&type=5 object name – enter the api name of the object used for the context example user (or account , depending on the record id you are passing) this setup ensures the widget loads the correct folders and files for the logged in experience cloud user the below widget is configured using {!currentuser id} , it displays only the files and folders shared to the logged in user’s salesforce user record after the resources are shared, users can view them on the home page as shown below add the widget using html if you want to use cloudfiles community widget in the html code of your experience site page, you can use the following code snippet html attributes record id id of the salesforce record which has the content attached object api name api name of the salesforce record which has the content attached for example account component width optional widget of the widget, in percentage of the total page width default value is 100% of the page width component height optional height of the widget default value is 328px widget config id optional id of the widget configuration to apply to this widget