Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How can we get picklist values dynamically in Apex in Salesforce?

    Tagged: Account Field, Apex, Field Object, Field Result Object, Picklist Values, Salesforce Apex

    • Salesforce® Discussions

      How can we get picklist values dynamically in Apex in Salesforce?

      Posted by Achintya on August 30, 2019 at 7:05 AM

      How can we get picklist values dynamically in Apex in Salesforce?

      Piyush replied 7 years ago 2 Members · 1 Reply
      • Account Field
      • Apex
      • Field Object
      • Field Result Object
      • Picklist Values
      • Salesforce Apex
    • 1 Reply
    • Piyush

      Member
      August 30, 2019 at 8:03 AM

      Hi Achintya,

      First get describefieldresult by using this code: Schema.DescribeFieldResult dfr = Schema.sObjectType.Account.fields.status;

      Then, get picklist values by suing this code: getPicklistValues() methods available in Schema.DescribeFieldResult object.

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    What is Enhanced Domain?

    What is an Enhanced Domain in Salesforce in 2023?

    Blog in Salesforce

    Enhanced domains are coming to My Domain in a future version. All URLs within your company—including those for your Experience Cloud sites, Salesforce Sites, Visualforce…

    Enhanced Domain, Enhanced Domain URL, Enhanced Domain URLs, Enhanced domains, Experience Builder
    ashutosh pandey Feb 21, 2023
    1,923  Views

    Power Apps: Build Custom Apps without Coding

    Blog in Others

    In today’s fast-paced business world, companies need to adapt quickly to changing demands. One of the biggest challenges organizations face is the ability to develop…

    Power platform tools
    Key Dynamics Aug 1, 2025
    308  Views
    App Development Lifecycle

    Salesforce App Development Lifecycle – Get your App on AppExchange

    Blog in AppExchange

    Even before you start coding and materializing your fabulous app out of thin air, or computer air, it is very important to establish a development…

    App on AppExchange, App on Salesforce, AppExchange, AppExchange App Development Project, Development in Salesforce
    Algoworks May 17, 2017
    7,696  Views

    Popular Salesforce Videos

    101 Guide to IBM Watson and Salesforce Einstein

    101 Guide to IBM Watson and Salesforce Einstein

    Video in Salesforce Integration, Salesforce Einstein

    In March 2017, IBM and Salesforce announced a global strategic partnership to seamlessly connect predictive insights found in unstructured data from IBM Watson APIs to…

    Salesforce Einstein, IBM Watson, IBM Watson API, Salesforce Einstein API, Salesforce Einstein Integration with IBM Watson
    Nauman Apr 24, 2018
    2,175  Views
    Apex Programming Tutorial for beginners : Data Types, Variables and Constants in Salesforce

    Apex Programming Tutorial for beginners : Data Types, Variables and Constants in Salesforce

    Video in Salesforce Apex, Salesforce Training

    Apex Programming Tutorial for beginners: Data Types, Variables and Constants in Salesforce.

    Apex Data Types In Salesforce, Apex Data Type String, Salesforce Data Types, Salesforce Data Type Currency, Salesforce Data Type Number
    Shiv Kumar Sharma Jan 30, 2018
    2,972  Views
    Happy 2021 to the Salesforce Ohana

    Happy 2021 to the Salesforce Ohana

    Video in Salesforce Stories

    As 2020 comes to a close, the challenges of the past year give way to hopes of a new year full of love, cheer, &…

    Salesforce Community, Salesforce Ohana, Salesforce Guide, Salesforce Video, Salesforce Help
    Pooja Jan 7, 2021
    1,633  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.