Symptom
You would like to delete unnecessary codes that have been added to a custom field of CODE data type.
Environment
- SAP Sales Cloud Version 2
- SAP Service Cloud Version 2
Reproducing the Issue
- Click on the User Icon.
- Go to the Settings > All Settings.
- Go to the Extensibility Administration.
- Select an Entity (e.g. Account, Case, Opportunity etc.).
- Go to the Custom Field tab.
- Select a CODE extension field.
- You can not delete or remove its Codes.
Cause
Due to data consistency requirements, these codes cannot be deleted because existing records may rely on them, preventing their removal from field metadata.
Resolution
To address this, the codes can be deactivated, making them unavailable for selection by end users. Follow these steps:
- Click on the User Icon.
- Go to the Settings > All Settings.
- Go to the Extensibility Administration.
- Select an Entity (e.g. Account, Case, Opportunity etc.).
- Go to the Custom Field tab.
- Select a CODE extension field.
- Locate the Codes and click on Deactivate.
- Save it.
By deactivating codes instead of deleting them, you maintain data integrity while managing selection options effectively.
Keywords
custom field, code, extension scenario, extension field, delete codes, delete code, remove codes, remove, remove values, extensibility adminitrastion , KBA , CEC-CRM-CZM-EXT , Extensibility for SAP Sales/Service Cloud , How To