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 integration with shopify

    Salesforce REST API Integration With Shopify

    Blog in Salesforce integration

    Here I come again with another blog of mine which will help you out in the integration of Salesforce with Shopify platform. Shopify is a…

    API key, Business Online, Integration, Integration of Salesforce, Online Store
    Udit Jun 3, 2020
    14,368  Views
    digital transformation

    Why Digital Transformation is Essential for Business Growth? | Salesforce Guide

    Blog in Salesforce

    With reports suggesting that worldwide spending on the technologies enabling digital transformation is forecast to reach $2.3 trillion (£1.8 trillion) in 2023, more and more…

    Applications, Business, Business Executives, Business Growth, Business Needs
    Kcloud Dec 18, 2020
    2,816  Views

    Dynamic Sharing of Standard & Custom Objects through Salesforce Apex

    Blog in Salesforce Apex, Salesforce Implementation

    Apex Sharing is sharing record access through a program using Salesforce Apex through which can grant access to users or groups of users. We can use…

    Coding and Scripting, Dynamic Sharing, Object Sharing, Salesforce Apex, Salesforce Apex Code
    BLUE FLAME LABS PRIVATE LIMITED Feb 26, 2018
    17,149  Views

    Popular Salesforce Videos

    Salesforce Lightning Tutorial | Salesforce Training | Lightning Training Video

    Salesforce Lightning Tutorial | Salesforce Training | Lightning Training Video

    Video in Lightning

    This Salesforce Lightning Tutorial will explain the concept of lightning components along with the lightning component capabilities. Lightning includes the Lightning Component Framework and some…

    Salesforce Lightning, Salesforce Lightning Components, Lightning Components, Lightning Platform, Salesforce Lightning Tutorial
    Simplilearn Apr 23, 2019
    1,904  Views
    Salesforce Summer '22 Release Highlights | Salesforce Video Tutorial

    Salesforce Summer '22 Release Highlights | Salesforce Video Tutorial

    Video in Salesforce Stories

    It's time for Salesforce's Summer '22 update release! This release is chock-full of exciting customization updates ready for you to use within your Salesforce organization.…

    Salesforce Training, Salesforce Development, Salesforce Implementation, salesforce, Salesforce Consulting
    DB May 24, 2022
    2,210  Views
    How to Choose Salesforce Career Path | How To Start a Salesforce Career

    How to Choose Salesforce Career Path | How To Start a Salesforce Career

    Video in Salesforce Stories, Salesforce Training

    With most of the businesses using Salesforce finding access to talent to be a ‘critical challenge’, it’s no wonder so many people are choosing a…

    Salesforce Training, Salesforce Tutorial, salesforce, CRM, Salesforce Video
    Nauman Nov 8, 2021
    1,405  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.