You need to sign in to do that
Don't have an account?
awin
relationship queries
Following query
Select o.Description, o.Id, o.ListPrice, o.OpportunityId, o.PricebookEntryId, o.Quantity, PricebookEntry.product2.productCode
from OpportunityLineItem o
WHERE id = '00k40000004bfoe'
works fine in sforce explorer.
My question is how can I access "PricebookEntry.product2.productCode" using C#.
I believe the sample found in http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_soql_relationships.htm
is java, not C#.
Thanks.
-ann
Select o.Description, o.Id, o.ListPrice, o.OpportunityId, o.PricebookEntryId, o.Quantity, PricebookEntry.product2.productCode
from OpportunityLineItem o
WHERE id = '00k40000004bfoe'
works fine in sforce explorer.
My question is how can I access "PricebookEntry.product2.productCode" using C#.
I believe the sample found in http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_soql_relationships.htm
is java, not C#.
Thanks.
-ann
Console.WriteLine(oli.PricebookEntry.Product2.productCode);