-
How to set default value in a picklist in apex code?
Hi All,
How to set default value in a picklist in apex code?
Basically, I am making a picklist with few states name and want to set Delhi as a default value. Any suggestions?
Thanks
Log In to reply.
Popular Salesforce Blogs

Dawn of the Era of Salesforce Lightning
Whenever the name of Salesforce comes up, the reactions that people give are- “Best Cloud Computing Services”, “Best cloud-based CRM”, “Amazing CRM services”, “Revolutionary CRM”…

Salesforce to Salesforce Integration Using SOAP API
Introduction to SOAP API SOAP API stands for Simple Object Access Protocol API which supports XML only. It can be used to create, update, delete,…

Exploring Salesforce Automation: A Comparative Analysis of Flow and Apex
You will inevitably be required to choose once you face the need to automate tasks in Salesforce. Flow or Apex? What sets them apart? Besides…
Popular Salesforce Videos
Salesforce Chatter Tutorial | Chatter Overview And Demo | Chatter In Salesforce
This Salesforce Chatter Tutorial will give an overview of Chatter which includes enabling chatter, configuring chatter groups and creating customer groups. Salesforce Chatter will be…
How to Get a Mentor? | Salesforce Learning | The Shrey Sharma Show
Looking for a mentor for Salesforce Learning? Watch this video to learn how to find one. Watch the full Video: https://youtu.be/6oi2zdJCFhs Check out the book:…
See the Future of APIs at Salesforce
Salesforce APIs are a way for other applications (or code in other applications) to programmatically access data within your Salesforce org, in a simple and…