function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marzorati ClaudioMarzorati Claudio 

Download Document Link for Guest User Profile

Hi all,

I have a site with a Guest Profile User that is not able to download doc without loggin into the org.
I read that Content Distribution are not available to Guest User, indeed I receive this error when trying to query Content Distribution (Content Version is available from '19 https://releasenotes.docs.salesforce.com/en-us/spring19/release-notes/rn_networks_guest_upload.htm)

When I'm trying to query the Content Distribution as Guest User I receive this
sObject type 'ContentDistribution' is not supported.
I have also enabled Content Delivery without password in my org
User-added image
but nothing changes.

Please let me know if it possibile for Guest User to download doc wihout logging into the org or I must save doc to another system in order to encompass my request.

Thank you


 
{tushar-sharma}{tushar-sharma}
You should be able to download the files for Guest user. Check the solution provided in below thread.

https://salesforce.stackexchange.com/questions/262890/downloadlink-not-working-for-guest-user-site

If this answer helps you, please mark it as accepted.

Regards,
Tushar Sharma
https://newstechnologystuff.com/
Marzorati ClaudioMarzorati Claudio
Sorry Tushar Sharma,
i forgot a thing.

In my site I use only lwc directly created from vf page.
 
<apex:page showHeader="false" showChat="false" >
    <apex:includeLightning />

    <div id="lightning" />

    <script>
        $Lightning.use("c:lwcApp", function() {
          $Lightning.createComponent("c:myComponent",
                {},
                "lightning",
                function(cmp) {
                    console.log("lwc was created");
                }
          );
        });
    </script>
</apex:page>

So I could not use visualforce tag.