Exam Plat-Dev-301 Topic 1 Question 194 Discussion
Actual exam question for Salesforce's Plat-Dev-301 exam
Question #: 194
Topic #: 1
Question #: 194
Topic #: 1
A developer is developing a reusable Aura component that will reside on an sObject Lightning page with the following HTML snippet:

How can the component"5 controller get the context of the Lightning page that the sObject is on without requiring additional test coverage?

How can the component"5 controller get the context of the Lightning page that the sObject is on without requiring additional test coverage?
Suggested Answer: A Vote an answer
By implementing force:hasSobjectName, the Aura component can retrieve the sObject context of the record page it is placed on without needing additional information. This interface provides the component with the API name of the sObject being displayed.
Aura Components Developer Guide
Aura Components Developer Guide
by Agnes at Jun 27, 2026, 08:20 AM
Contact Us
If you have any question please leave me your email address, we will reply and send email to you in 12 hours.
Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday
Support: Contact now
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).