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 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, 9 months 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.

    • [adinserter block='9']
    • 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, 9 months 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

    Popular Salesforce Blogs

    10 Commandments Of Becoming An Excellent Salesforce Administrator

    Blog in Salesforce Admin

    Have you heard the entire hassle-bustle about Salesforce these days? Are you tantalized by the great Salary structures of various profiles in Salesforce? Well, you…

    AppExchange, Field History Tracking, Finance Service Cloud, Healthcare CRM, Lightning updates
    William Jan 29, 2019
    4,147  Views

    Salesforce Customization: Explanation and Examples

    Blog in Salesforce customization

    Salesforce is a platform packed with features right out of the box. But here's the thing: many businesses feel the need to give it a…

    Automated Processes, Business Analysis, Custom Applications, Custom Dashboards, Custom Development
    Sparkybit Jun 21, 2024
    1,006  Views

    Asset Management for Private Equity in Salesforce

    Blog in Salesforce

    The demand for private equity organizations for asset management has increased a lot over the years. There is a massive increase of assets to be…

    Asset Management, Asset Management Platform, Automate Process, Business Models, Business Needs
    360 Degree Dec 15, 2021
    3,589  Views

    Popular Salesforce Videos

    Salesforce Object Query Language (SOQL) Crash Course | The Complete Hands-on Tutorials

    Salesforce Object Query Language (SOQL) Crash Course | The Complete Hands-on Tutorials

    Video in Salesforce Training

    SOQL in Salesforce is used to retrieve data from the Salesforce database for specific information. This video covers everything you need to know as a…

    Salesforce Training, salesforce, Salesforce Database, SOQL, Salesforce Video
    Prafull Sep 6, 2021
    2,071  Views
    Send WhatsApp Messages from Salesforce Marketing Cloud

    Send WhatsApp Messages from Salesforce Marketing Cloud

    Video in Marketing, Salesforce Cloud Platform

    One of the longest-anticipated integrations was recently revealed by Salesforce: WhatsApp as a platform to send messages using the marketing cloud. Brands today have many…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Marketing Cloud, Salesforce Video
    Jogender Mar 10, 2021
    2,857  Views
    How Salesforce Supports Military Families

    How Salesforce Supports Military Families

    Video in Salesforce Stories

    Join Rachel Dishman, Lead Solution Engineer at Salesforce, as she discusses the ways that Salesforce supports military families. By tuning in, you'll hear more about…

    Salesforce Training, Salesforce Tutorial, Salesforce Jobs, salesforce, Salesforce Ecosystem
    Prafull Nov 12, 2021
    2,099  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.