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
idan ashtamkeridan ashtamker 

Get site from contact

Hey, I added sites tab, and every contact has a linked site in his "Contact Detail"
now I'm trying to get the site in my code.
I'm using enterprise wsdl, in c#, like this:
SforceService sfs = new SforceService()
sfs.query("SELECT Site__c FROM Contact  where MobilePhone like '9999999999'");

but I can't get the site atrribute from the queryResult. obviously I cant see the site in records[i].site
Am I doing it right? any other method I can use?
thanks
Best Answer chosen by idan ashtamker
idan ashtamkeridan ashtamker
OK, I generated the wsdl from the client account, and added it again, and got it  :)