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
avkavk 

Bulk Data Load using Batch Apex Class: Cannot insert or update values with field type Picklist.

Hello,

I have a class which loads/distributes bulk data from a temp object to multiple objects using Batch Apex Class. But the problem is i can't update or insert values with field type Picklist.

 

On both source object and destination object i have two fields of type picklist.

Please help.

 

My Email: anil.valluri@cvmsolutions.com

Mobile: +91 9866496535

 

Thanks,

Anil

DevAngelDevAngel

You should be able to update the picklist value on a record, but if you are trying to modify the metadata for the object, ie add or change the defined values of the picklist field you will need to either use the metadata api (not available through apex) or use the setup area in the application.

 

Cheers