-
What is the correct syntax to use <lightning:card> in Salesforce?
This is my code inside <aura:component>
<lightning:card footer="Card Footer" title="Hello"> <aura:attribute name="searchAccountDetails" type="Account" default="{'sobjectType': 'Account', 'Name': ''}"/> </lightning:card>
when I try to save this without using <lightning:card> there are no errors, but with <lightning:card>, it is throwing an error:
ERROR: Invalid attribute "name": Source.
Could some explain why this error is showing?
Log In to reply.
Popular Salesforce Blogs

Changes to the Salesforce Developer Exam: All you need to know
As many of you may be aware, Salesforce.com has announced changes to the Salesforce Developer Certification roadmap: this article offers a detailed Salesforce Developer exam guide on the…

Single- Sign-On In Salesforce | All You Need to Know
Single Sign On (SSO) Between two Salesforce Orgs Single Sign-On is an authentication process that allows users to access multiple applications and systems with a…

Understanding Salesforce QuickStart Implementation: Top 10 Questions Answered
Why would businesses want to implement Salesforce into their business operations? Salesforce is a powerful CRM platform that is highly customizable and feature-rich, but it…
Popular Salesforce Videos
Salesforce Summer '22 Release Highlights | Salesforce Video Tutorial
It's time for Salesforce's Summer '22 update release! This release is chock-full of exciting customization updates ready for you to use within your Salesforce organization.…
Salesforce Summer ’22 Release | Flow Enhancement of Summer 22 Release with Example
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…
How to Manage Bulk Data in Salesforce?
Data is at the heart of everything you do in your business. It is also the engine that drives your Salesforce instance. Without it, how…