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
andyCandyC 

sforceClient.Query() giving Object Error on Pre Release

This appeared to be working last night, but I cannot see what is wrong this morning.

I am consistently getting Object Error as an exception. Am I doing something wrong ?

...script src="https://www.sforce.com/ajax/beta2/sforceclient.js" type="text/javascript">

sforceClient.init("{!API_Session_ID}", "{!API_Partner_Server_URL_70}");
try {
var res = sforceClient.Query("Select Id from Contact");
} catch (e) {
alert(e);
}
andyCandyC
Sorry guys. It was IE Security / Cross Domain settings. Doh!