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
MayMay 

Problem Querying Account Info

I am using the partner WSDL this query works for 3 or 4 of our other customers but for some reason when I attempt to get the account info for or latest customer it does not seem to return any values.

 

sWhereClause1 = " WHERE Id ='" + Session["AccountId"].ToString() + "'";

sQuery1 = "Select AccountNumber, Id, LastModifiedDate, Name, Website, Phone from Account " + sWhereClause1;

dsUser = ConnectSalesForce.GetDataSetFromQuery(sQuery1);

if(dsUser.Tables[0].Rows.Count>0)

Actual SQL = Select AccountNumber, LastModifiedDate, Name, Website, Phone from Account WHERE Id ='00130000003TR6w'