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
MaverickDevMaverickDev 

Add/update mutiple Values with respective labels in Contact custom Picklist field

Hi Guys,

 

My requirement is to create a custom picklist field (which I did) in contact section and populate it dynamically by calling external web service thru apex.

I wrote the apex code, but I can bind either label or value but  not both in contact section.

 

Is there a way I can bind the values with respective lables to constom picklist field using apex? (NOT in Visualforce page)

 

Also, I would like to know If I can create common dropdown list for leads and contact section? Is there a way to populate it using apex?

 

Please, let me know as its very urgent.

 

Thanks a lot!