function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dragon123dragon123 

Doubt in lookup relationship

55) Object X has a lookup to Object Y. What among the following statements are TRUE Please choose two (2). Please choose two (2).

  • a) Fields of both X and Y are accessible from Object Y.
  • b) Fields of Object Y can be accessed from Object X.
  • c) Fields of both Y and X are accessible from Object X.
  • d) Fields of Object X can be accessed from Object Y.

Ans: b,c

 

Any body explain this scenario

AsiereikiAsiereiki

Hi,

 

X only reference a single Y

 

Y references a lot of X

 

If you are in Y and you need fields from X, you dont know what X is the correct (because you have a lot), so you can't acces them,

 

If you are X, you only have one Y, you can acces it.

 

So the correct answers are B and C as you say because from Object X you can read you own fields and Y fields.

 

Think that the lookup relation is only one-way direction.

 

 

sandeep@Salesforcesandeep@Salesforce

It is because in Parent child relation ship you can directly acces PArent's field in child object using Parent field API but reverse is not possible
'b' is correct and
every field of any object is accessbile from this object so 'c' is also correct.

andy yu 9andy yu 9
Based on the answer given, I'm assuming that the question is asking about Cross-Object Formula, which you can only set up on the detail(child) and can reference fields on the master(parent) object.
prayank sahu 7prayank sahu 7
Please go through the below links for more detail about relationship in salesforce

https://youtu.be/9ltnHYQ1tqE
https://youtu.be/3ULokr4yaEE
JaimeBidJaimeBid
I get the explanation, anyway it is a tricky question, as from object Y (parent) you get the related list of X (child) objects, from where you can get any required fields.