Quick summary
In Salesforce, 15-digit IDs are case-sensitive and can cause errors in integrations and reports; converting them to 18-digit IDs using a formula field ensures reliable, case-insensitive record references. This tutorial walks through creating a Formula field in the Object Manager via Advanced Setup to output the full 18-character ID.
Steps
- Click the gear icon at the top-right of your Salesforce dashboard to open the setup menu.
- Select Open Advanced Setup from the dropdown.
- Click Object Manager at the top of the Setup page.
- Select an object from the list to open it.
- Select Fields & Relationships from the left-hand sidebar.
- Click New at the top to start creating a new field.
- Choose Formula as the Data Type for the new field.
- Select Text as the Formula Return Type.
- Enter or paste the 18-digit ID conversion formula into the Formula text box.
- Review the field details, then click Next to proceed.
- Review the details again, then click Save to create the field.

