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 I get all Field API names of Accounts in Salesforce?

    Tagged: Account Detail, Account Field, Accounts in Salesforce, Field API Name

    • Salesforce® Discussions

      How can I get all Field API names of Accounts in Salesforce?

      Posted by Ratnakar on January 15, 2018 at 1:21 PM

      How can I get all Field API names of Account?

      NAVEEN replied 8 years ago 3 Members · 3 Replies
      • Account Detail
      • Account Field
      • Accounts in Salesforce
      • Field API Name
    • 3 Replies
    • Charan Tej

      Member
      January 15, 2018 at 1:36 PM

      You can get it from Workbench.

      Login to workbench and try using just a query on Account object.

    • Charan Tej

      Member
      January 15, 2018 at 1:37 PM

      https://developer.salesforce.com/docs/atlas.en-us.sfFieldRef.meta/sfFieldRef/salesforce_field_reference_Account.htm

      This dcoument will be helpful.

    • NAVEEN

      Member
      January 16, 2018 at 7:25 AM

      By using Schema we can get any Object field API names and labels also.

      Schema.getGlobalDescribe().get(selectedObject).getDescribe().fields.getMap();

      From Above method we get A Map. In this map Keys are API names of field for selectedObject.

       

      U can use below for Accounts API Names

      // get the Account Info

      Schema.DescribeSObjectResult r = Account.sObjectType.getDescribe();

      // init list of strings to stores the API names of Accounts
      List<String>apiNames = new list<String>();
      for(string apiName : r.fields.getMap().keySet()){
      apiNames.add(apiName);
      System.debug(apiName);
      }
      System.debug(apiNames);

       

      • This reply was modified 8 years ago by  NAVEEN.

    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

    Navigation Service in Lightning Web Components All You Need to Know

    Navigation Service in LWC | All You Need to Know

    Blog in Salesforce

    The lightning/navigation service is used to navigate in Lightning Experience, Lightning Communities, and Salesforce Applications. Lightning Navigation Services Web Components are used to navigate to…

    API, Decorators in LWC, Easy Integration, HTML, HTML Code
    Rishabh Mar 10, 2023
    1,941  Views

    Salesforce Service Cloud Use Cases: Enhance Customer Experience & Insights

    Blog in Salesforce

    When it comes to selecting the ideal solution for providing enterprise-level customer support, there are frequently several possibilities. However, choosing the correct platform and technology might assist you…

    Better User Experience, Case Management, Channels, Chat, Client Reach
    AblyPro Aug 10, 2023
    1,433  Views

    How ChatGPT Integration With Salesforce Can Accelerate Your Business Growth

    Blog in Salesforce

    ChatGPT is a new-age artificial intelligence (AI) chatbot that interacts with people in a human manner. It is a futuristic Generative Pre-trained Transformer (GPT) that…

    Artificial Intelligence, Automation, Chat GPT, chat gpt for salesforce, ChatBot
    Carol Jun 2, 2023
    2,513  Views

    Popular Salesforce Videos

    How Will Salesforce Career Look Like 3 Years From Now?

    How Will Salesforce Career Look Like 3 Years From Now?

    Video in Salesforce Stories

    In this video, Shrey shares his opinions about How will Salesforce career look like 3 years from now. Watch and learn. If you have any…

    Salesforce Training, Salesforce Tutorial, Salesforce Certification, Salesforce Developer, salesforce
    Jogender Feb 25, 2021
    1,291  Views
    2020 Salesforce Admin Certification - Lightning Knowledge Base Setup

    2020 Salesforce Admin Certification - Lightning Knowledge Base Setup

    Video in Salesforce Certifications

    A Salesforce Admin Certification is the highest form of recognition a Salesforce Administrator can achieve; it demonstrates expertise in the field as well as a…

    Salesforce Certification, Salesforce Lightning, Salesforce Administrator, Salesforce Admin, Salesforce Video
    Abhishek Oct 16, 2020
    2,102  Views
    Salesforce Platform Quick Tip: How to Make Key Information Easier to Find

    Salesforce Platform Quick Tip: How to Make Key Information Easier to Find

    Video in Salesforce Training

    Want to flag things on a Salesforce record, so that your users notice? Like flagging a super important customer record, or alerting them that a…

    Salesforce Training, Salesforce Tutorial, salesforce, salesforce platform, Salesforce Video
    Pooja Sep 29, 2021
    1,641  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.