Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Platform Developer II Topic 5 Question 113 Discussion

Actual exam question for Salesforce's Platform Developer II exam
Question #: 113
Topic #: 5
[All Platform Developer II Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: A

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

Contribute your Thoughts:

Sue
2 days ago
I disagree, I believe the correct answer is C) Set the sObject type as a component attribute.
upvoted 0 times
...
Della
16 days ago
I think the answer is A) Add force:hasSobjectName to the implements attribute.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77