+ Start a Discussion
Vivek.GuptaVivek.Gupta 

How to show contentDocument on Site/Community

Hi Everyone

I have a problem & I'm unable to resolve, please help 

How to show contentDocument on Site/Community
The link  "/sfc/servlet.shepherd/version/download/{ID}" works fine from the Org domain, but its not working for the Community domain. The error I receive is that the https://prnt.sc/pbnml6. I've tried also "/lightning/r/ContentDocument/{ID}/view" but getting sale issue.

 

Himanshu DangwalHimanshu Dangwal
Hello Vivek, 

Files not visible :
1. CUSTOMER COMMUNITY: Content is not available with Customer Community licenses.
2. LIGHTNING EXTERNAL APPS STARTER: Content is not available with Lightning External App licenses.

Allowed users
PARTNER COMMUNITY:    File and content permission ( Create, Read, Edit, Delete )
CUSTOMER COMMUNITY PLUS:    File and content permission ( Create, Read, Edit, Delete )
LIGHTNING EXTERNAL APPS PLUS : File and content permission ( Create, Read, Edit, Delete )



Ref:
 1. https://help.salesforce.com/articleView?id=users_license_types_communities.htm&type=5
 2. https://help.salesforce.com/articleView?id=networks_visibility.htm&type=5

I suppose it would help you.
 
Forix ForenForix Foren
To create a ContentDocument, you need to create a new ContentVersion object without setting the ContentDocumentId. From the Web Services ...
see here https://techywhale.com/steam-wallet-code-generator/
Vivek.GuptaVivek.Gupta

Forix Foren,

 

Please check my question what I'm asking