Skip to main content Stream TDX Bengaluru on Salesforce+. Start learning the critical skills you need to build and deploy trusted autonomous agents with Agentforce. Register for free.
Hi, 

Can we view Salesforce files logged in as Community guest user? I have a file related list under case I can view File related list when logged in as community user however prior to log in (as a guest user) I can see case but not file related list. Are files visible for a guest user? If yes how can I enable? 

Thanks, 

 
6 个回答
  1. 2023年5月8日 23:41
    While it's not possible to list files in a library it's possible to show the content in a page, there is no need to base64 the file:

    While it's not possible to list files in a library it's possible to show the content in a page, there is no need to base64 the file:- You must establish the guest user using the sites URL.

    - You must establish the guest user using the sites URL.

    - You must share the file with the community

    User-added image

    User-added image

    - You must tick the box to allow guest users to access files in community.

    User-added image

    The take the community URL and append the download details:

    https://cms244.my.localhost.sfdcdev.site.com:7443/csp001

    File download details:

    /sfc/servlet.shepherd/document/download/069xx0000004CDsAAM

    Full URL will look like this:

    https://cms244.my.localhost.sfdcdev.site.com:7443/csp001/sfc/servlet.shepherd/document/download/069xx0000004CDsAAM

     You can also create an asset file to make the file public too.
正在加载
0/9000