function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JennMJennM 

Update ID in custom object

Is it possible to update the ID in a custom object in a managed package?  I want to be able to update the ID (which is an Autonumber with string) to add another string value such as:

 

From:

Intake-{0000001}

 

To:

Intake-{0000001} - Doe, Jane

 

This is because all the emails and tasks associated with the Intake only show the ID and it would be convenient to show the name of the person without needing to click into the record.  I was thinking an after update trigger could update the ID.

 

Thanks for any advice.

Anand@SAASAnand@SAAS

You cannot change the Autonumber format. You could create a formula field that appends the Name to the auto-number field and use that formula field in your emails.