コミュニティ (Experience Cloud) ユーザーは、「顧客アクセス」設定が有効になっていない限り、アクセス権を持つレコードに関連するファイル (ContentDocumentLink としてアップロードされたファイル) を表示できません。
根本原因:
Salesforce Files では、アップロードされたファイルごとに顧客アクセス設定を手動で切り替える必要があります。現在、新規ファイルまたは既存のファイルに対してこれをデフォルトで有効にする、すぐに使用できる設定はありません。
これは、次の Salesforce IdeaExchange の投稿で確認された既知の制限です: 説明: 関連する IdeaExchange の投稿:
「Option to set Customer Access on Files by Default」 (デフォルトでファイルへの顧客アクセスを設定するオプション)
このリンクをクリックすると、Salesforce IdeaExchange の投稿に移動します。その投稿では、「ファイルをレコードに共有する場合に Customer Access = ON をデフォルトで設定できるようにしてほしい」という顧客からの要望が寄せられています。
これは IdeaExchange の投稿であり、アクティブな機能ではありません。
Apex Trigger for New Filesfor example:trigger SetFileVisibility on ContentDocumentLink (before insert) {
for (ContentDocumentLink cdl :Trigger.new) {
cdl.Visibility = 'AllUsers'; // Makes file visible to internal and external (community) users with access to the record
}
}
005101347

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.