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, 2 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

    Popular Salesforce Blogs

    Free Pardot Org

    Learn About Free Pardot Org | Salesforce Developer Edition

    Blog in Salesforce, Salesforce Products

    There are two types of free Pardot org is available:-  Pardot Demo Org:- This org is Similar to our internal Demo environments which includes some…

    App Launcher, Business Unit Admin, Business Unit Name, Contact and Lead Objects, data
    Anshu Apr 26, 2022
    14,164  Views
    Named Credentials

    Named Credentials as Callout Endpoints - Salesforce Developer Guide

    Blog in Salesforce Apex

    A named credential specifies the URL of a callout endpoint and its required authentication parameters in one definition. To simplify the setup of authenticated callouts,…

    API Documentation, authenticated callouts, Authentication, Authentication Protocol, Authentication Protocols
    Mohit Kumar Nov 22, 2022
    7,874  Views

    Federated Authentication Using SAML to Log in to Salesforce Org

    Blog in Others

    Federated Authentication is one of the SSO(Single Sign On) Methods that uses SAML(Security Assertion Markup Language) assertion sent to the Salesforce endpoint and if everything…

    Axiom, Identity Provider, Salesforce Encryption, Salesforce Security, Security Assertion
    Naman Apr 20, 2016
    15,839  Views

    Popular Salesforce Videos

    Salesforce Agentforce for Nonprofits

    Salesforce Agentforce for Nonprofits

    Video in Others

    With Salesforce's latest AI tool, Agentforce, you can boost your Salesforce org with AI agents that can streamline workflows, reduce costs, and improve your constituent…

    salesforce, CRM, AI, Digital Transformation, Workflows
    DB Nov 25, 2025
    354  Views
    Learn About the Before Trigger in Salesforce Flows

    Learn About the Before Trigger in Salesforce Flows

    Video in Salesforce Admin

    Here I am creating 2 scenarios for before - Save Updates in Salesforce Flows Salesforce Summer '20 Flow Builder feature. Creating or updating a record…

    Salesforce Training, salesforce, Salesforce Admin, Salesforce Video, Salesforce Learning
    Shubham Nov 17, 2020
    1,699  Views
    Develop a Basic Slack App For Salesforce

    Develop a Basic Slack App For Salesforce

    Video in Salesforce Stories

    Build Slack Apps integrated with Salesforce. Use Heroku to host Slack apps built using Slack Bolt Framework and get connected to Salesforce using Node.js library…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    Nauman Dec 7, 2021
    3,016  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.