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 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, 1 month 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

    application solution

    Popular Salesforce Blogs

    Batch Class in Salesforce

    All About Batch Class in Salesforce | The Developer Guide

    Blog in Salesforce Apex

    Batch Apex is used to run large jobs (think thousands or millions of records!) that would exceed normal processing limits. Each time you invoke a…

    Batch, Batch Apex, Batch Class, Batch Class Code, Batch Class in Salesforce
    Arpit Oct 26, 2021
    4,346  Views

    Integrate Salesforce with MuleSoft

    Blog in Others

    In this blog we are focusing on Salesforce integration with MuleSoft. Firstly, we will need a Salesforce developer account by clicking on the following link:…

    Salesforce Applications, Salesforce Developer, Salesforce Navigation, SFDC
    Emily Jul 15, 2019
    8,444  Views

    Top Tools and Streamlining Government Services with Public Sector Cloud

    Blog in Salesforce

    The march of technology has dramatically changed how government services are delivered, with ever more efficiency and accessibility. One of the most influential innovations driving…

    Cloud Computing, CRM, Field Service Management, Salesforce Implementation, Salesforce Public Cloud
    TechForce Jul 30, 2024
    629  Views

    Popular Salesforce Videos

    Salesforce Online Training Videos For Beginners | Campaign Management

    Salesforce Online Training Videos For Beginners | Campaign Management

    Video in Salesforce Training

    Learn all about the Salesforce campaign management in this video. Watch and learn. If you have any doubts or questions, please let us know in…

    Salesforce Training, Salesforce Tutorial, Salesforce Online Training, Salesforce Video, Salesforce Learning
    Abhishek Mar 11, 2021
    2,171  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,715  Views
    Salesforce CPQ: Fixing Percent of Total Calculations for Amended Quotes

    Salesforce CPQ: Fixing Percent of Total Calculations for Amended Quotes

    Video in Salesforce Products

    Salesforce users looking to enhance their product-quoting processes can take advantage of Salesforce Configure, Price, Quote Software, or CPQ. Some features require the use of…

    Salesforce Training, salesforce, Salesforce CPQ, CPQ, Salesforce Video
    DB Apr 7, 2022
    2,587  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.