Slaesforce FAQ

can i chane percent datatype to picklist in salesforce

by Maurice O'Connell Published 3 years ago Updated 2 years ago
image

If your picklist field is used in apex class or trigger, then am afraid you can not change its data type. You first need to comment out the places where you are refering it then change the data type of field > Now remove the comments from classes and triggers > Deploy all classes and pages to production. There is no way out per my knowledge.

Full Answer

What are picklists and field dependencies in Salesforce?

To accomplish what they want, you set up picklists and field dependencies. Picklists offer a selection of options available for specific fields in a Salesforce object, such as a list of regions.

How do I create a picklist value set in Salesforce?

Enter Picklist Value Sets in the Quick Find box and select Picklist Value Sets. Click New and fill in the details. Click Save. Next, create a custom picklist field called Region on the lead and account objects. From Setup, click Object Manager and select Lead. Select Fields & Relationships and click New. Click Next and fill in the details.

When should you use global picklists in Salesforce?

Salesforce Global Picklists should be used any time you need the same set of picklist values on multiple objects. In this example, our picklist is called “HQ Continent” – and since there are always the same continents present on the earth, we want to present our uses with the same set of picklist values, no matter what object they’re working on.

How to change the data type of a picklist field?

If your picklist field is used in apex class or trigger, then am afraid you can not change its data type. You first need to comment out the places where you are refering it then change the data type of field > Now remove the comments from classes and triggers > Deploy all classes and pages to production.

image

Can we change the data type from text to picklist in Salesforce?

You can't convert a defined unique text field to a picklist or a multi-select picklist.

Can we change the datatype of field in Salesforce?

You can't change the data type of a custom field referenced by other items in Setup such as Visualforce pages, Apex code, processes, or flows. Changing a custom field type can require changing many records at once.

How can you change field type?

Select the field (the column) that you want to change. On the Fields tab, in the Properties group, click the arrow in the drop-down list next to Data Type, and then select a data type. Save your changes.

Can you change the field type of a field if it is referenced in Apex?

You won't be able to change the field type if: It is referenced in your Apex code or any other custom code you've written. It is being used in any other formula field, workflow rule, validation rule, workflow field update, process builder, lead assignment rule, case assignment rule etc.

How do I convert a text field to a picklist in Salesforce?

You can't convert a defined unique text field to a picklist or a multi-select picklist.From the management settings for the field's object, go to Fields.Click Edit next to the custom field that you want to change.Click Change Field Type.Select a Picklist and click Next.More items...

How do you change the datatype of an object in Salesforce?

Change the Custom Field TypeFrom the management settings for the field's object, go to Fields. ... Click Edit next to the custom field you want to change.Click Change Field Type.Select a new data type and click Next.Enter a field label, name, and any other attributes, and then save your changes.

Can we change picklist field to Formula field in Salesforce?

No, you can't change the Datatype of a Field from a Non-Formula (like a Picklist) to a Formula.

How do I deploy a field type change in Salesforce?

It is possible to do the following:Comment out references in the Dev sandbox.Change the custom field type (my change was from Text to Text Area)Restore the references.Create a change-set including only the changed custom field.Successfully deploy the change-set to the Full sandbox.

Can we change picklist field to formula field in Salesforce?

No, you can't change the Datatype of a Field from a Non-Formula (like a Picklist) to a Formula.

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9