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 to display dynamically added picklist value as a picklist value and as picklist field for that parent object in Salesforce?

    Tagged: Account Object, Parent Object, Picklist Field, Picklist Values, SOQL

    • Salesforce® Discussions

      How to display dynamically added picklist value as a picklist value and as picklist field for that parent object in Salesforce?

      Posted by Prachi on December 10, 2019 at 6:45 PM

      I have picklist field industry in account If I added new picklist value 'ABC' to that industry that 'ABC' should be displayed as value in industry field and as a picklist field in account object.

      Yogesh replied 6 years, 10 months ago 2 Members · 1 Reply
      • Account Object
      • Parent Object
      • Picklist Field
      • Picklist Values
      • SOQL
    • 1 Reply
    • Yogesh

      Member
      December 11, 2019 at 10:29 AM

      Hello,

      I m assuming your controller property to get the options looks something like one of the following

      If you are taking the values directly from a specific picklist field

      public List<SelectOption> getMyOptions() {

      List<SelectOption> options = new List<SelectOption>();
      Schema.DescribeFieldResult field = yuopurObject.YourField.getDescribe();

      for (Schema.PicklistEntry f : field.getPicklistValues()){
      options.add(new SelectOption(f.getLabel(), f.getLabel()));
      }
      return options;
      }
      Or if you are manually adding the options, then something like this

      public List<SelectOption> getMyOptions() {

      List<SelectOption> options = new List<SelectOption>();
      options.add(new SelectOption('Option1','Option1'));
      options.add(new SelectOption('Option2','Option2'));
      options.add(new SelectOption('Option3','Option3'));
      return options;
      }
      If you want to adjust the options according to profile then you could simply do something like this

      public List<SelectOption> getMyOptions() {

      List<SelectOption> options = new List<SelectOption>();

      //Might want to look into storing in a custom setting to avoid SOQL call
      Profile p = [Select Id, Name From Profile Where Name = 'Your Profile Name'];
      if(System.Userinfo.getProfileId() = p.Id){
      //add your values here
      }else{
      //add alternate values here
      }

      return options;
      }

    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

    10 Best Key Practices for Successful Salesforce Customization

    Blog in Salesforce customization

    Salesforce is the key to limitless possibilities. To fully utilize the potential of Salesforce, you must consider the distinct vision, demands, and goals of your…

    Boost Business Analytics, business-analytics, Certified Salesforce Customization Expert, Client Retention, CODING
    Cynoteck Aug 10, 2023
    1,870  Views
    Salesforce Marketing Cloud

    Salesforce Marketing Cloud Implementation Partner in the USA

    Blog in Salesforce Consultant

    Kizzy Consulting, a trailblazing force in the Salesforce ecosystem, stands out prominently as a Salesforce Marketing Cloud Implementation Partner in the USA. With a proven…

    Audience Engagement, Automated Email Journeys, Compliance and Security, Comprehensive Training, CRM Solutions
    Kizzy Consulting Jan 4, 2024
    3,010  Views

    Webinar: Performing a Successful Technical Debt Assessment in Salesforce

    Blog in Salesforce

    Technical debt is a concept in software development that reflects the implied cost of additional rework caused by choosing an easy (and potentially limited) solution…

    Business Changes, Business Grows, Financial Debt, Implement, Implement Changes
    Vala Marcou Nov 27, 2020
    1,886  Views

    Popular Salesforce Videos

    Sandbox Design Strategies for Enterprise Implementations

    Sandbox Design Strategies for Enterprise Implementations

    Video in Salesforce Apex

    It is inevitable to avoid Sandboxes in most enterprise implementations. As different teams work on different processes like testing, development, pre-release, and final rollout, it…

    Salesforce Apex, salesforce, Sandbox Design Strategies, Sandbox Design, Enterprise Implementations
    Jogender Apr 1, 2020
    2,071  Views
    How to Manage Your Data and Contacts in Salesforce Marketing Cloud

    How to Manage Your Data and Contacts in Salesforce Marketing Cloud

    Video in Salesforce Training

    Learn how contacts are counted and how data is structured in Marketing Cloud. This video explores how Marketing Cloud receives data from many sources and…

    Salesforce Training, Salesforce Tutorial, Salesforce Marketing Cloud, Salesforce Video, Salesforce Learning
    Prafull Oct 12, 2021
    2,317  Views
    How Do You Select the Right Salesforce Implementation and Transformation Partner?

    How Do You Select the Right Salesforce Implementation and Transformation Partner?

    Video in Salesforce Implementation

    Looking for Salesforce Certifications while choosing a Salesforce Implementation Partner is no more just enough. In this video Our CEO Jayant Umrani explaining about the…

    Salesforce Training, Salesforce Tutorial, Salesforce Certification, Salesforce Implementation, salesforce
    Bolt Feb 23, 2023
    1,407  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.