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
webdevwebdev 

Can AJAX toolkit can be used outside of S-control?

I just wanted to know if I can use AJAX toolkit to get data at client side from an external website? We have a form on our website. Based on some values(in dropdown) in the form, I need to access some information from Salesforce. Can this be done using AJAX toolkit?

Thanks! 
Ron HessRon Hess
the AJAX toolkit is carefully designed to work from the salesforce servers, sepcificaly in scontrols.  It is not designed to be run from external servers / websites.

That said, you can see from a src review how the toolkit packages SOAP calls and invokes the Salesforce API.

Your website can access the salesforce SOAP API using any number of languages, selecting the best for your case is your call. 

Normaly an external website would not employ a client side (javascript) toolkit to talk server to server.