How to use sforce.connection.partnerServerUrls

I’m stuck! Can I get an example on how to properly use sforce.connection.partnerServerUrls.?

The documentation and a user group post appears to say I can call sforce.connection.partnerServerUrls.16

I have also tried:

var num = 8;
var n = num.toString();
var partnerServer = sforce.connection.partnerServerUrls.n;

But I get undefined.


Try using array syntax, like so “sforce.connection.partnerServerUrls[16]”.

AH!  Yes!  Thank you. 

I like supplying the low hanging fruit. 

And we love the low hanging fruit!