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
JonSimmonsJonSimmons 

Query Products with Partner WSDL

I am writing some software and I would like it to be re-distributable and work with any SFDC user's organization, so I'm using the partner WSDL. Unfortunatly I have found that the partner WSDL is shy of ALOT of the standard objects, Product2 for example.

I can run a query like "SELECT id, name FROM Product2" and get results but then I can't cast them to a Product2 object. Is there some other way that I can get to the data?

Thanks
Jon
SuperfellSuperfell
You access the data by walking the any collection on the sObject class, see the partner samples in the .NET getting started kit.
JonSimmonsJonSimmons
Got it, thanks!