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

    Top 5 Use Cases of Salesforce Partner Portal

    Blog in Salesforce

    Struggling to work together with external partners on projects? A Salesforce partner portal is your solution! These portals act as a central hub for your…

    Built-In Forums, Chat Functionalities, Data Sharing, Document Sharing, Forums Chats
    CRMJetty Jun 13, 2024
    678  Views
    Sharing Rules Unit

    Create Sharing Rules Unit in Salesforce - Learn Here

    Blog in Salesforce Apex

    Hey there, since we have already talked about the sharing rule now let’s have a look at how to create these sharing rules. You can…

    Apex Trigger, API, Assigned Roles, Create Sharing Rules Unit, Criteria-Based Sharing Rules
    Akash Varshney Nov 10, 2022
    2,445  Views

    How to Improve Your Sales Pipeline Using Salesforce?

    Blog in Sales

    To sustain in today’s era of cutthroat competition, businesses should ensure consistent sales growth and managing your sales pipeline efficiently is a great way of…

    Applications, Automation Tool, Better Communication, Business, Business Ecosystem
    Girikon Jun 29, 2022
    2,824  Views

    Popular Salesforce Videos

    Salesforce Summer ’22 Release | Flow Enhancement of Summer 22 Release with Example

    Salesforce Summer ’22 Release | Flow Enhancement of Summer 22 Release with Example

    Video in Salesforce Stories

    Exceed your business goals with the Summer ’22 release by seamlessly integrating your data, finding meaningful insights, and building lifelong customer relationships. How to Use…

    Salesforce Training, salesforce, Salesforce Video, Salesforce Learning, Release Notes
    Rupal Kakkar May 13, 2022
    1,645  Views
    Salesforce Pay Expectations $$$ US and UK

    Salesforce Pay Expectations $$$ US and UK

    Video in Salesforce Stories, Salesforce Training

    Do you agree or disagree with these numbers? How do you think Mason Frank could have surveyed differently? In this video, Brad discusses just how…

    Salesforce Jobs, Salesforce Developer, Salesforce Consultant, Salesforce Administrator, dreamforce
    Bradley May 21, 2020
    2,596  Views
    How to Create Seamless Buying Experiences | Salesforce CPQ & B2B Commerce

    How to Create Seamless Buying Experiences | Salesforce CPQ & B2B Commerce

    Video in Salesforce Stories, Salesforce Training

    B2B buying is evolving as buyers want a better, more personalized experience when shopping for their businesses. But Salesforce has that covered. Here are 4…

    salesforce, Salesforce CPQ, Salesforce Video, Salesforce Learning, Business
    Jogender Jul 14, 2020
    1,555  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

    © 2025 - 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.