手動共有レコードは、データローダを使用して該当するオブジェクトに共有設定を挿入することで作成できます。標準オブジェクトがデータローダを使用した共有ルールの作成をサポートしているか確認するために、「SOAP API の概要」を確認し、データローダでオブジェクト名 + 「Share」という名前のオブジェクト(例: AccountShare) が存在するかを確認します。該当するオブジェクトが見つからない場合は、そのオブジェクトはデータローダを使用した共有ルールの作成をサポートしていません。(例: EventShare および TaskShare)
次の 3 つの列を含む CSV ファイルを作成します。
1.レコード ID - この列は、操作するオブジェクトに応じて、AccountID、CaseID、LeadID、OpportunityID のいずれかの列名になっています。レコード ID は、Salesforce ID を含む、共有するレコードがリストされているレポートを作成およびエクスポートして取得できます。
2.UserOrGroupID - レコードへのアクセス権を付与するユーザまたは公開グループの ID。ユーザ ID は、ユーザレポートを作成およびエクスポートして取得できます。データローダを使用して、ユーザまたはグループテーブルをエクスポートできます。
3.アクセスレベル - この列は、オブジェクトに応じて、AccountAccessLevel、CaseAccessLevel、LeadAccessLevel、OpportunityAccessLevel のいずれかの列名になっています。
次のいずれかの値を使用する必要があります。
| AccountID | UserOrGroupID | AccountAccessLevel |
| 001000000012345 | 005000000023456 | Edit |
例:
.csv データファイルを準備した後、データローダを使用して、AccountShare、CaseShare、LeadShare、OpportunityShare など、該当する共有テーブルのレコードを Insert (作成) します。これらのテーブルには、データローダのデータオブジェクトを選択するステップで、[Show all Salesforce objects] チェックボックスをクリックするとアクセスできます。
新しい共有ルールエントリは、Salesforce で直接レコードの [共有] ボタンをクリックして作成されたかのように、[手動] 共有ルールとして表示されます。
データローダでカスタムオブジェクトに共有オブジェクトを使用する場合、次の動作に注意してください
上記の条件を満たすカスタムオブジェクトは、データローダで選択でき、[Show all Salesforce objects] ビューに「共有: CustomObjectName (CustomObjectName__Share)」として表示されます。
関連情報:
データローダのインストール
000385389

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.