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

    Custom Metadata Test Class Coverage in Salesforce

    Custom Metadata Test Class Coverage in Salesforce

    Blog in Salesforce customization

    When we want to implement custom Logic with IF/ELSE cases then in many scenarios we use Custom Metadata Types. But when we try to cover…

    Custom Metadata Types, Custom Settings in Salesforce, Metadata Component, Salesforce Custom Objects, Salesforce Customization
    Manpreet Apr 16, 2018
    60,424  Views
    Salesforce Lightning With Salesforce Classic

    Comparing Salesforce Lightning With Salesforce Classic

    Blog in Lightning

    The executive's customer relationship is very important to the collaboration with the association's present and future clients, especially in the current scenario, which is full…

    Applications, Best Consultation, Charts, Classic Version, Collaboration
    Cymetrix Jun 29, 2021
    3,143  Views
    Business Revenue

    What is Salesforce Sales Cloud? And How Does it Boost Business Revenue?

    Blog in Salesforce Consultant

    Sales hold massive importance in every business. However, building quality customer relationships comes as a high priority too. These reasons lead businesses to use CRM…

    Automotive Cloud, Business, Business Leads, Business Process, Business Revenue
    Innovadel Oct 26, 2022
    2,481  Views

    Popular Salesforce Videos

    Why Salesforce is a Good Entrepreneurial Opportunity for Veterans

    Why Salesforce is a Good Entrepreneurial Opportunity for Veterans

    Video in Salesforce Stories

    Are you a military veteran or military spouse? Have you dreamed of having your own business? This video is for you! This video covers an…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    Nauman Jun 1, 2021
    1,272  Views
    Avoid Common Security Mistakes in Salesforce

    Avoid Common Security Mistakes in Salesforce

    Video in Salesforce Security

    Are you using Salesforce in the most secure way? Security is not a “set it and forget it” thing. We conduct Salesforce Security Risk Assessments…

    Salesforce Security, Salesforce Lightning, Salesforce Field Objects, Salesforce Fields, Security And Access
    Nauman May 8, 2018
    1,989  Views
    Escalation Rule in Salesforce

    Escalation Rule in Salesforce

    Video in Others, Salesforce Training

    In this video, Shrey is not only teaching but also demonstrating Escalation Rule in Salesforce. 1. What are Escalation Rules in Salesforce? 2. What is…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    Jogender Apr 19, 2021
    1,975  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.