Loading
Slack 관련 문의처가 Salesforce Help로 통합 및 변경됩니다.더 많이 읽기

Salesforce Backup & Recover: Restoring Auto Number Field Values

게시 일자: Oct 9, 2026
상세 설명

Salesforce Auto Number fields automatically assign a unique sequence value on record creation, and there is no supported way to insert or overwrite this value directly through the API or a standard data load. This becomes a challenge when restoring records with Salesforce Backup & Recover, where the original Auto Number values need to be preserved rather than regenerated.

The following standard Auto Number fields do not allow their field type to be changed, so the field-type-conversion workaround below cannot be used on them:

  • Case Number
  • Contract Number
  • Solution Number
  • Order Number
  • Idea Number
  • Asset Warranty Number
솔루션

This article explains how to preserve original Auto Number field values when restoring records with Salesforce Backup & Recover. Two workaround approaches are available.

Option 1: Temporarily Convert the Field Type

  • Change the Auto Number field to a Text field type.
  • Run the restore or data load. This allows the original values to be written into the field as-is.
  • Convert the field type back to Auto Number once the restore is complete.

Option 2: Use a Substitute Field to Preserve Original Values

  • Create a new custom field (for example, "Legacy ID") on the object.
  • Modify the restore or import file so the original Auto Number values map into this new field instead of the Auto Number field itself.
  • This preserves a reference to the original value without altering the live Auto Number field.

Limitations of the Auto Number Restore Workarounds

  • These are the only two supported paths. There is no way to insert or overwrite values directly in an Auto Number field.
  • Option 1 is not suitable if the field is heavily referenced elsewhere (Flows, Apex, formulas), since changing its type can break those dependencies.
  • Option 2 preserves the value only as a cross-reference, not in the original field.
Knowledge 기사 번호

005391112

 
로드 중
Salesforce Help | Article