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, 7 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 & Xero Integration in 2024 | All You Need to Know

    Blog in Others

    This article is prepared by our Salesforce Developer Lisa Vasilieva. Xero is a cloud-based accounting software for small and medium-sized businesses. This system gives the ability…

    Auth Code with PKCE, Auth Providers, Authorize Endpoint URL, Authorized Provider, Callouts
    Vimera | Andersen Dec 13, 2023
    816  Views

    Boost productivity with the Salesforce Inspector Chrome Extension

    Blog in Others

    With digitization, the workload in every organization is growing exponentially, creating a lot of mundane, but essential tasks. These activities are time-consuming and not so…

    Chrome Extensions, External IDs, Salesforce Admin, Salesforce API, Salesforce Data
    LevelShift (formerly DemandBlue) Mar 11, 2020
    5,166  Views
    lightning record

    Working and Usage of lightning:recordEditForm | Salesforce Developer Guide

    Blog in Lightning

    Build a form with the lightning:recordEditForm component to add a Salesforce record or change fields in an existing record. The part shows fields along with…

    Change Fields, Creating a Record, Customizations, data, Developer Guide
    Marziya May 28, 2021
    10,244  Views

    Popular Salesforce Videos

    Create Custom App in Salesforce | Salesforce Custom App | Salesforce Tutorial

    Create Custom App in Salesforce | Salesforce Custom App | Salesforce Tutorial

    Video in Salesforce Training, Salesforce Apps

    Watch this amazing video to learn how to create a custom app in Salesforce. Salesforce is a cloud-based platform that has transformed how companies have…

    Salesforce Training, Salesforce Tutorial, salesforce, Learn Salesforce, Salesforce Video
    Pooja Nov 13, 2020
    2,265  Views
    Salesforce Developer Tools and Productivity

    Salesforce Developer Tools and Productivity

    Video in Salesforce Products

    Kevin Poorman shows how you can use Salesforce Developer Tools and how you can unlock developer productivity. Watch this video to learn more.

    Salesforce Products, salesforce, Salesforce Tools, Salesforce Developers, Salesforce Video
    Jogender Apr 13, 2021
    2,706  Views
    Salesforce Billing - Digital Wallets and Alternative Payment Methods

    Salesforce Billing - Digital Wallets and Alternative Payment Methods

    Video in Others, Salesforce Stories

    THE GOAL:  In this video, you will learn how to use Alternative Payment Methods and Digital Wallets with Salesforce Billing. BEFORE YOU BEGIN, KNOW THE…

    salesforce, Salesforce Video, Salesforce Billing, Digital Wallets, Alternative Payment Methods
    Jogender Jul 1, 2020
    3,582  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®.

    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.