You need to sign in to do that
Don't have an account?

Question regarding related objects
In the following code..
cases is a list. Prodcut__C is having a lookup relationship with cases. One case can have many products. When i access the related list of products like case.Product__c; what exactly i get? is it just the list of related product list ids or is it the related product list objects? if it is an object list of products then does those product objects contain all the fields with values or only the id field? Please clarify.
for(Case case: cases){
Case newCase = new Case();
newCase.Product__c = case.Product__c;
newCase.AccountId = case.AccountId;
.......
}
cases is a list. Prodcut__C is having a lookup relationship with cases. One case can have many products. When i access the related list of products like case.Product__c; what exactly i get? is it just the list of related product list ids or is it the related product list objects? if it is an object list of products then does those product objects contain all the fields with values or only the id field? Please clarify.
for(Case case: cases){
Case newCase = new Case();
newCase.Product__c = case.Product__c;
newCase.AccountId = case.AccountId;
.......
}

case.Product__c itself is an id.