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
gcarterITgcarterIT 

Full path needed for ../../soap/ajax/20.0/connection.js

For those of us who wish to extract Salesforce data to an external website using Ajax what is the full path (URL) to ../../soap/ajax/20.0/connection.js?

 

Thanks

b-Forceb-Force

Here are the full url for connection.js

 

https://ap1.salesforce.com/soap/ajax/20.0/connection.js

https://na1.salesforce.com/soap/ajax/20.0/connection.js

https://cs3.salesforce.com/soap/ajax/20.0/connection.js

 

 

you can use any one of above ..... base line is INSTANCE_NAME +/ soap/ajax/20.0/connection.js

 

Thanks,

Bala

gcarterITgcarterIT

Hi Bala,

 

Thanks for the quick reply.

 

Please correct me if I 'm wrong: Because I cannot use the AJAX toolkit to connect to salesforce.com from a website outside of the salesforce.com domain (due to cross-domain issues), the urls you sent me will not help me. Does that sound correct?

 

Again, thanks for the quick reply,

George

armen-intecharmen-intech

As an update to this,

the URL can be generalised to suit your SF instance:

in my case, it's

https://emea.salesforce.com/soap/ajax/22.0/connection.js

 

the basic URL breakdown rule is by instance and version:

https://<instance>.salesforce.com/soap/ajax/<instanceversion>.0/connection.js

 

You can get any version from 8 to the latest release onwards (currently at 22 as of this post, but official documentation is already referring to 23). When the next iteration comes out, change the version to match and presto: new connection.js

 

There are differences between the versions, but they're subtle; I only found loop iteration differences between versions 15.0 and 22.0

 

To clarify the toolkit security requirements. I am using the connection.js with the Javascript Scripting toolkit, which logs me in separately.  That implies that the code to get you into salesforce is already present (that or I'm being highly insecure).  so the code is clearly usable outside of salesforce.com proper.

gcarterITgcarterIT

Thanks for the update.