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 › What is the use of force:recordData in Salesforce lightning component?

    Tagged: Custom Action, force:recordData, Lightning App, Lightning Data Service, Record ID, Salesforce Lightning Component, Salesforce Records, Standard Account

    • Salesforce® Discussions

      What is the use of force:recordData in Salesforce lightning component?

      Posted by Nikita on September 25, 2019 at 11:53 AM

      What is the use of force:recordData in salesforce lightning component?

      Ashutosh replied 6 years, 4 months ago 2 Members · 1 Reply
      • Custom Action
      • force:recordData
      • Lightning App
      • Lightning Data Service
      • Record ID
      • Salesforce Lightning Component
      • Salesforce Records
      • Standard Account
    • 1 Reply
    • Ashutosh

      Member
      September 25, 2019 at 1:30 PM

      A force:recordData component defines the parameters for accessing, modifying, or creating a record using Lightning Data Service. You have granular control on how you want to display or render the data in your custom component.

      We recommend that you use the simpler lightning:recordForm component for accessing, modifying, or creating a record if you don't need a custom layout or custom rendering of record data.

      To load a record, specify its record ID, the component attributes, and a list of fields in your custom component. You can add your custom component to a record home page in the Lightning App Builder, or as a custom action.
      In the following example, the record ID is supplied by the implicit recordId attribute added by the force:hasRecordId interface. A lightning:card component is used to display the record data via accountRecord on the targetFields attribute.

      <aura:component implements="force:hasRecordId,flexipage:availableForRecordHome">
      <aura:attribute name="accountRecord" type="Object"/>
      <aura:attribute name="recordLoadError" type="String"/>

      <force:recordData aura:id="recordLoader"
      recordId="{!v.recordId}"
      fields="Name,Description,Phone,Industry"
      targetFields="{!v.accountRecord}"
      targetError="{!v.recordLoadError}"
      />

      <div>
      <lightning:card iconName="standard:account" title="{!v.accountRecord.Name}" >
      <div class="slds-p-horizontal--small">
      <p class="slds-text-heading--medium"><lightning:formattedPhone title="Phone" value="{!v.accountRecord.Phone}" /></p>
      <p class="slds-truncate"><lightning:formattedText title="Description" value="{!v.accountRecord.Description}" /></p>
      <p class="slds-truncate"> <lightning:formattedText title="Industry" value="{!v.accountRecord.Industry}" /></p>
      </div>
      </lightning:card>
      </div>
      </aura:component>

       

    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

    Major Benefits of Hiring a Salesforce Consultant

    Blog in Salesforce Consultant

    What is the Market Share of Salesforce? Salesforce's global market share and revenue continue to increase year after year. The company holds a market share…

    Application, Assistance, Benefits, Business Needs, Buying Behavior
    Emorphis May 22, 2023
    1,591  Views

    Salesforce Marketing Cloud Summer'21 Top Features

    Blog in Salesforce Cloud Platform, Salesforce Releases

    With Marketing cloud, send your customer the right message at the right time on the right platform and increase your reach. Get a panoramic view…

    API Event, App Event, Audience Insights, Automation Operations, Business Users
    Apphienz Jun 17, 2021
    2,353  Views
    salesforce managed services

    Optimizing OpEx and Accelerating Speed to Market with Salesforce® Managed Services

    Blog in Salesforce

    The demand of customers for a personalized experience, the need for marketing, sales, and customer service teams for collaboration and automation have been the driving…

    App Cloud, C-suite, Community Cloud, Consultation Services, CRM Goals
    Alok Jul 14, 2020
    2,783  Views

    Popular Salesforce Videos

    Salesforce Apex Rest API Integration

    Salesforce Apex Rest API Integration

    Video in Salesforce Integration

    As you know salesforce is an online cloud solution, we might be required to integrate Salesforce with some other third party tool. We have released…

    REST, Salesforce Beginner Tutorial, Salesforce Integration, Apex Rest API, Salesforce Rest API
    Nauman May 23, 2018
    2,589  Views
    Revenue Generation Opportunities on AppExchange

    Revenue Generation Opportunities on AppExchange

    Video in Others

    If you're an aspiring entrepreneur or a business professional looking to expand your revenue streams, this video is a must-watch! Watch this extract from our…

    salesforce, AppExchange, Salesforce Video, Video, Business
    Cyntexa Jul 18, 2023
    1,076  Views
    How Link Cartridge Development Can Your Business Storefront | Salesforce Link Cartridge

    How Link Cartridge Development Can Your Business Storefront | Salesforce Link Cartridge

    Video in Salesforce Training

    LINK Cartridge is a container for packaging and deploying program code and data, it’s structured in folders and subfolders for maximum efficiency.

    Salesforce Training, salesforce, Salesforce Video, Salesforce Learning, Link Cartridge Development
    Cyntexa May 12, 2022
    1,493  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.