レコードで共有されたファイルのデフォルト表示は設定されていませんが、コミュニティを持つことで表示オプションが変更されます。
例:
その取引先 ID を使用し、ワークベンチから次のクエリを実行します。WHERE 条件の LinkedEntityId に取引先 ID を使用します。
SELECT ContentDocumentId, LinkedEntityId, Visibility, ShareType
FROM ContentDocumentLink
WHERE LinkedEntityId='0013D00000QEgMaQAL'
出力:
| ContentDocumentId | LinkedEntityId | 表示 | ShareType |
| 0693D0000005ixzQAA | 0013D00000QEgMaQAL | AllUsers | V |
出力:
| ContentDocumentId | LinkedEntityId | 表示 | ShareType |
| 0693D0000005ixzQAA | 0013D00000QEgMaQAL | AllUsers | V |
| 0693D0000005jGDQAY | 0013D00000QEgMaQAL | InternalUsers | V |
追加情報:
さまざまな表示種別とその定義についての詳細は、「ContentDocumentLink」のドキュメントを参照してください。
for(ContentDocumentLink cont : Trigger.new) { cont.Visibility = 'AllUsers'; }
関連情報
コミュニティユーザーが「添付ファイル」から移行した「ファイル」を表示できない
Change the default visibility of Files shared on records using Data Loader (データローダを使用してレコードで共有されるファイルのデフォルトの表示を変更)
レコード権限を継承するようにファイル共有を設定
000384243

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.