You need to sign in to do that
Don't have an account?
AMAN SINGH 24
hello everyone I am confused about Schema.ChildRelationShip.getchildObject What Child SObject it return?
Schema.DescribeSObjectResult R = Account.SObjectType.getDescribe();
List<Schema.ChildRelationship> C = R.getChildRelationships();
system.debug(''+C);
this in not give either contact ,cases or opportunity so what kind of object it is returning?
thanks in advance
List<Schema.ChildRelationship> C = R.getChildRelationships();
system.debug(''+C);
this in not give either contact ,cases or opportunity so what kind of object it is returning?
thanks in advance
You have to do it like this.You can see the system.debug which is printing all the child objects
Schema.DescribeSObjectResult R = Account.SObjectType.getDescribe();
List<Schema.ChildRelationship> C = R.getChildRelationships();
for( Schema.ChildRelationship sc :c){
System.debug('sc'+sc);
}
But i am not able to see the Contact or case
objects why is it so