Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • 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
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • 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
    • Marketplace
    • Advertise With Us
    • 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 6 years, 3 months 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

    application solution

    Popular Salesforce Blogs

    Salesforce Partner Learning Camp

    Salesforce Partner Learning Camp: A Trailhead for Partners?

    Blog in Salesforce, Salesforce Ecosystem

    Created exclusively for Salesforce partners, Salesforce Partner Learning Camp (PLC) is the primary educational resource for building service capabilities to meet customer demands. After Salesforce…

    B2B and B2C Space, Certification Vouchers, Consulting Partners, CPQ, Credential Tracker
    Algoworks May 13, 2021
    3,603  Views
    Salesforce Knowledge Implementation

    Step by Step Guide for Salesforce Knowledge Implementation

    Blog in Salesforce

    Salesforce Knowledge management capability provides the ability to solve multiple queries or incidents by providing the knowledge base by using articles. This can be utilized…

    Article Type, Community Sites, Company Policies, Customer Community, Customers
    Narendra Sa Oct 28, 2021
    8,717  Views

    Salesforce Data Loss: Is Your Data Correct? How Can UI Contribute?

    Blog in Others

    For a number of years security and safety of data has been the major reason which proved itself to be a hiccup in the path…

    AppExchange, Salesforce Applications, Salesforce Cloud Service, Salesforce Cloud Solution, Salesforce Data Entry
    Algoworks Dec 9, 2019
    4,185  Views

    Popular Salesforce Videos

    Client Side Search in Lightning Component Salesforce | Lightning Data Table

    Client Side Search in Lightning Component Salesforce | Lightning Data Table

    Video in Lightning, Salesforce Development

    In this video, I will implement the Client-Side Search functionality in Lightning Data Table in a Custom Lightning Component. Client-Side Search allows users to search…

    Salesforce Development, Salesforce Lightning, salesforce, Salesforce Tutorials, Salesforce Video
    Kapil Sep 15, 2020
    3,388  Views
    How Can Salesforce Help To Transform Business Into A Sales Powerhouse?

    How Can Salesforce Help To Transform Business Into A Sales Powerhouse?

    Video in Salesforce Stories

    This video will help you understand what is Salesforce and how it can help transform businesses. Salesforce CRM will help to transform your organization to…

    Salesforce Security, Salesforce Reports, Salesforce Chatter, Salesforce Developer, Process Automation
    Simplilearn Apr 22, 2019
    1,653  Views
    In App Guidance | Salesforce Tutotial

    In App Guidance | Salesforce Tutotial

    Video in Others, Salesforce Training

    In this video, we take a look at one of the new features from the Salesforce Summer '19 release - In-App Guidance. We explain what…

    Salesforce Training, Salesforce Administrator, Salesforce Video, In App Guidance, Salesforce Learning
    Stimulus Consulting Oct 5, 2020
    1,689  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

    © 2025 - 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®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.