You need to sign in to do that
Don't have an account?
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.
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.
see here https://techywhale.com/steam-wallet-code-generator/
Forix Foren,
Please check my question what I'm asking
Also you need to remove the additional "/s/" or "/lightning/" from the download url. Refer a sample code below, will work on Aura as well as LWC.