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
Pawan Kumar 32Pawan Kumar 32 

Can we change data type of standard field on Custom object

Hi all,

Just wanted to know is there any way to change data type text to picklist of Name standard field on Custom object. I know we can change data type only text to auto number or vice versa. As per my understanding we cannot change text to picklist. Please help if you you have idea about it.

Thanks
Deepak GulianDeepak Gulian
No you can't change Standard Name field to Picklist
DeepthiDeepthi (Salesforce Developers) 
Hi Pawan,

Unfortunately, we can't change the datatype of standard fields. Only we can shift between text and Auto Number data types.But if you want the same functionality create a custom field of that data type and of this custom field you can change data type.

Also check the below link on changing datatypes.
https://help.salesforce.com/apex/HTViewHelpDoc?id=notes_on_changing_custom_field_types.htm&language=en

Hope this helps you!
Best Regards,
Deepthi
Suraj Tripathi 47Suraj Tripathi 47
Hi Pawan Kumar 32,

You can not change the field type of standard type. You can change the custom field type like this:
Go to setup->Select Object Manager->Choose Object Name->Click field and relationships->Choose Field name->Change type.

If you find your Solution then mark this as the best answer.

Thank you!

Regards,
Suraj Tripathi