You need to sign in to do that
Don't have an account?
Praveen 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
Hi
Relationship will be defined initial of datamodel, there wont be any dynamic relationship.
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
Check these out:
http://boards.developerforce.com/t5/Apex-Code-Development/How-do-you-Dynamically-get-Field-types-on-an-sObject-type/td-p/170683
http://boards.developerforce.com/t5/Apex-Code-Development/Getting-all-field-names-of-a-object/td-p/385073
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dynamic_describe_objects_understanding.htm
Use getType() from the Describe Field Methods( http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_fields_describe.htm ) to get the lookups.
Thanks,
Adrian