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
joe-kizayjoe-kizay 

DescribeSObject error AJAX

I am trying to use the DescribeSObject method in javascript using the 3.3 sforceclient.js. For some reason the same code that was working before the weekend isnt now just a few days later. Just wondering if anyone else has experienced this problem or if Im just nuts.
 
var s = sforceClient.DescribeSObject("Case");
 
Gives me an error on line 2542 "Object required".
 
I did noticed the thread on DescribeSObjects not working with the 3.3 js but from what I understood using DescribeSObject individually was the workaround. Anything else I could try would be greatly appreciated.
 
Thanks.
joe-kizayjoe-kizay
woops! Nevermind. My bad. I didnt realize that I did not initialize the sforceClient before using it. :smileyhappy: