自動採番項目は、レコードに対して連続した値を自動的に生成します。テストやデータのリセットなど、場合によってはこのシーケンス(連番)を再設定したり修正したりする必要があります。
手順は、項目がカスタムか標準かによって異なります。
自動採番項目には、直接的な「リセット」ボタンはありません。その代わりに、データ型を一時的に変更する(カスタム項目の場合)、または次の番号の値を更新する(標準項目の場合)ことでリセットを実現します。方法は、データ型とそれがどこで設定されているかによって異なります。
カスタム自動採番フィールド(Lightning & Classic)
カスタム自動採番フィールドをリセットするには:
1. 設定に移動します。
2. 手順:
・オブジェクトマネージャー → オブジェクトを選択 → 項目とリレーション に移動します。
3. 対象の自動採番フィールドを選択し、編集をクリックします。
4. データ型の変更をクリックします。
5. データ型をテキストに変更します。
6. 保存をクリックします(これにより、既存の値がテキストに変換されます)。
7. 手順を繰り返し、フィールド型を自動採番に戻します。
8. 以下の項目を任意に設定します:
・表示形式
・開始番号
9. 保存をクリックします。
注:
・新しい番号付けは、新しいレコードにのみ適用されます。
・既存のレコードは変更されません。
標準自動採番フィールド(Salesforce Classicのみ)
標準自動採番フィールドを更新するには:
1. 設定 → カスタマイズ → [オブジェクト名] → 項目 に移動します。
2. 対象の自動採番フィールドの隣にある編集をクリックします。
3. 以下を更新します:
・表示形式
・次の番号
4. 保存をクリックします。
5. 警告メッセージを確認します。
注:
・このオプションはSalesforce Classicでのみ利用可能です。
・一部の標準フィールド(例:注文商品番号)は修正できません。
重要な考慮事項
・リセットは重複する値につながる可能性があります。
・管理パッケージのフィールドは修正できません。
・シーケンスが定義された桁数を超えた場合、自動採番項目は自動的に拡張されます。
関連情報:
自動採番項目が指定された桁数を超えた場合の影響
カスタム項目のデータ型の変換に関する考慮事項
カスタム項目のデータ型
000385217

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.