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

    Accelerating Vaccine Management With Salesforce's Vaccine Cloud

    Blog in Salesforce

    Local and international government officials and healthcare workers are currently delivering the most extensive mass vaccination campaign in human history. The formulation and creation of…

    Automated System, Avoid Surplus Supplies, Centralized Dashboard, Contact Tracing Systems, COVID Crisis
    Apphienz Apr 2, 2021
    3,615  Views

    How To Get Started With Workflow Automation? | Salesforce Guide

    Blog in Salesforce

    Automation is being embraced by businesses globally. In order to reduce employees' growing workloads and provide customers with the services they expect, it has become…

    Automation, Best Low-code Tools, Best Toolkits, Built-in-Intelligence, Business
    Apphienz Nov 23, 2022
    2,265  Views

    Elevate Customer Engagement With Salesforce Marketing Cloud

    Blog in Salesforce Cloud Platform

    Generating high-quality leads is critical for any business in today’s competitive world. But how do you connect with your customers more personally and meaningfully? Implementing…

    API in Salesforce, Automation Studio, Brand Builder, Content Management, Customer Acquisition
    Tech9logy Jul 2, 2024
    1,502  Views

    Popular Salesforce Videos

    Salesforce Sales Cloud Implementation

    Salesforce Sales Cloud Implementation

    Video in Sales, Salesforce Cloud Platform, Salesforce Implementation

    There are many things to take into consideration when developing and deploying a Salesforce Sales Cloud implementation that will take your business to the next…

    Salesforce Training, Salesforce Sales Cloud, Salesforce Implementation, salesforce, Salesforce Cloud Platform
    DB Mar 29, 2022
    2,616  Views
    Batch Apex In Salesforce | Asynchronous Apex

    Batch Apex In Salesforce | Asynchronous Apex

    Video in Salesforce Apex, Salesforce Training

    Asynchronous Apex 1. Batch Apex 2. How to run Batch Apex class 3. Monitor Batch Apex class 4. Examples 5. Points To Remember Upcoming Video…

    Salesforce Tutorial, Apex Class, salesforce, Salesforce Video, Salesforce Learning
    kanika Aug 3, 2021
    6,172  Views
    Understanding Traditional AI vs. Generative AI | Explained Simply

    Understanding Traditional AI vs. Generative AI | Explained Simply

    Video in Others

    Ever wondered how computers can be taught to think? Or how they create art, music, and stories on their own? If you're curious about these…

    Salesforce Tutorial, salesforce, Salesforce Video, Salesforce VIdeos, Webinar
    Cyntexa Oct 25, 2023
    1,035  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.