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

    Salesforce for Insurance

    Salesforce for Insurance Companies: Things That You Should Know

    Blog in Salesforce Consultant

    The insurance industry is one of the highly competitive industries, and therefore, insurers should spend more time improving the customer experience to get a competitive…

    Business Deals, Challenging Jobs, Claim Management, Client Behaviour, Collecting Payments
    SP Dec 28, 2021
    5,216  Views

    Salesforce Code Builder is Officially Released

    Blog in Salesforce Releases

    Salesforce Code Builder has been officially released and is now generally available, offering a new web-based integrated development environment (IDE) that seamlessly incorporates open, modern,…

    AppExchange, Code Builder, CodeGen, CRM Configuration, Data Residence Requirements
    Cloudmetic Nov 29, 2023
    2,092  Views

    Salesforce Chatter vs Slack - A Comparative Analysis

    Blog in Salesforce Products

    As part of its strategic acquisition policy, Salesforce surprised the world with the billion-dollar acquisition of Slack Technologies Inc. In the words of Marc Benioff,…

    API, Asynchronous, Asynchronous Communication, Billion-dollar Acquisition, Built-in Apps
    SkyPlanner Sep 9, 2022
    2,717  Views

    Popular Salesforce Videos

    AMPscript Lookup - Salesforce Marketing Cloud Functions in 5 minutes

    AMPscript Lookup - Salesforce Marketing Cloud Functions in 5 minutes

    Video in Marketing, Salesforce Cloud Platform, Salesforce Training

    Salesforce Marketing Cloud functions in 5 minutes! In this video, Cameron Robert shows how Lookup() works in Salesforce Marketing Cloud using some helpful visuals to…

    Salesforce Training, Salesforce Tutorial, salesforce, Marketing Automation, Salesforce Marketing Cloud
    Cameron Jul 18, 2022
    4,197  Views
    Introduction to Salesforce Flow Builder

    Introduction to Salesforce Flow Builder

    Video in Salesforce Stories

    Watch this video to learn about Salesforce Flow Builder. 0:00 Introduction 2:50 Introduction to Salesforce Flows 4:40 Types of flows, Screen, Auto-Launched 7:10 Components related…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    Jogender Jun 27, 2022
    2,159  Views
    How to Create a File Location in Salesforce Marketing Cloud

    How to Create a File Location in Salesforce Marketing Cloud

    Video in Marketing, Salesforce Training

    Cameron Robert shows how to use PuttyGen to generate and create an SSH Key for SFTP usage in Salesforce Marketing Cloud, then how to create…

    Salesforce Training, Salesforce Tutorial, Salesforce Marketing Cloud, Trailhead, Salesforce Video
    Cameron Sep 16, 2021
    2,817  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.