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
Praveen NPraveen N 

dynamically finding relationship between objects

Hi All,

 

i have one object Opportunity. i have three other obejcts object1, object2, object3, these objects have realationship with opportunity (parent or child relaitonship). can we know dynamically these objects having which realtiohship with opportunity. whether it has child realtionship or parent relationship with opportunity.

 

Thanks

Praveen

dotnet developedotnet develope

Hi

 

Relationship will be defined initial of datamodel, there wont be any dynamic relationship.

Praveen NPraveen N

Hi dotnet develope,

Definitely relationship should be defined at data mode and also there is no dyminc relationship. my question is can we know dynamically which relationship object1 with object2 in the apex code.

 

Thanks

Praveen