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
Emmanuel B.Emmanuel B. 

Documentation about global variables

Hello,

I have tried to find a reference for the VF global variables (such as $API) but without success.
I find the list of these variables but not the members of each.
Can anyone tell me if such documentation exists, or if there is a way to iterate through the global variables members to discover it.

Thanks

Chamil MadusankaChamil Madusanka

Refer following links

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_variables_global.htm

 

http://na12.salesforce.com/help/doc/en/dev_understanding_global_variables.htm

 

If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

Tejpal KumawatTejpal Kumawat

Hi Emmanuel, 

 

There are only this Document is avaliable for global variable

http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#CSHID=pages_variables_global.htm|StartTopic=Content%2Fpages_variables_global.htm|SkinName=webhelp

 

 

 

--------------------
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

Thanks

Emmanuel B.Emmanuel B.

Thanks for your answer.

I saw this page but there is only (excpet for variable site and label.site) examples and no list of fields :

Let's consider the variable $Api.Partner_Server_URL_90 given in example : how can I know that Partner_Server_URL_90 exists, and how can I know other fields exist in the object $Api ? I can't guess it, I need either a way to list it or a reference documentation.

 

 

SForceBeWithYouSForceBeWithYou

Okay Emmanuel, are you ready?? :-)

 

In Chrome with Developer tools window open (or Firefox with Firebug installed, etc.).... 

*) Create new custom field on any object

*) Type is Formula

*) Type of Formula is Text (name and label don't matter, you won't save them)

*) If you examine the page source at "Step 3. Enter Formula" page in the new custom field wizard, you will see the following variable in a script element defined: "categoryToFieldMap".  This is a map that will contain the following entry... 

'$Api' : [new Option('API Enterprise Server 10.0 URL', '$Api.Enterprise_Server_URL_100'), new Option('API Enterprise Server 11.0 URL', '$Api.Enterprise_Server_URL_110'), new Option('API Enterprise Server 11.1 URL', '$Api.Enterprise_Server_URL_111'), new Option('API Enterprise Server 12.0 URL', '$Api.Enterprise_Server_URL_120'), new Option('API Enterprise Server 13.0 URL', '$Api.Enterprise_Server_URL_130'), new Option('API Enterprise Server 14.0 URL', '$Api.Enterprise_Server_URL_140'), new Option('API Enterprise Server 15.0 URL', '$Api.Enterprise_Server_URL_150'), new Option('API Enterprise Server 16.0 URL', '$Api.Enterprise_Server_URL_160'), new Option('API Enterprise Server 17.0 URL', '$Api.Enterprise_Server_URL_170'), new Option('API Enterprise Server 18.0 URL', '$Api.Enterprise_Server_URL_180'), new Option('API Enterprise Server 19.0 URL', '$Api.Enterprise_Server_URL_190'), new Option('API Enterprise Server 2.5 URL', '$Api.Enterprise_Server_URL_25'), new Option('API Enterprise Server 20.0 URL', '$Api.Enterprise_Server_URL_200'), new Option('API Enterprise Server 21.0 URL', '$Api.Enterprise_Server_URL_210'), new Option('API Enterprise Server 22.0 URL', '$Api.Enterprise_Server_URL_220'), new Option('API Enterprise Server 23.0 URL', '$Api.Enterprise_Server_URL_230'), new Option('API Enterprise Server 24.0 URL', '$Api.Enterprise_Server_URL_240'), new Option('API Enterprise Server 25.0 URL', '$Api.Enterprise_Server_URL_250'), new Option('API Enterprise Server 26.0 URL', '$Api.Enterprise_Server_URL_260'), new Option('API Enterprise Server 27.0 URL', '$Api.Enterprise_Server_URL_270'), new Option('API Enterprise Server 3.0 URL', '$Api.Enterprise_Server_URL_30'), new Option('API Enterprise Server 4.0 URL', '$Api.Enterprise_Server_URL_40'), new Option('API Enterprise Server 5.0 URL', '$Api.Enterprise_Server_URL_50'), new Option('API Enterprise Server 6.0 URL', '$Api.Enterprise_Server_URL_60'), new Option('API Enterprise Server 7.0 URL', '$Api.Enterprise_Server_URL_70'), new Option('API Enterprise Server 8.0 URL', '$Api.Enterprise_Server_URL_80'), new Option('API Enterprise Server 9.0 URL', '$Api.Enterprise_Server_URL_90'), new Option('API Partner Server 10.0 URL', '$Api.Partner_Server_URL_100'), new Option('API Partner Server 11.0 URL', '$Api.Partner_Server_URL_110'), new Option('API Partner Server 11.1 URL', '$Api.Partner_Server_URL_111'), new Option('API Partner Server 12.0 URL', '$Api.Partner_Server_URL_120'), new Option('API Partner Server 13.0 URL', '$Api.Partner_Server_URL_130'), new Option('API Partner Server 14.0 URL', '$Api.Partner_Server_URL_140'), new Option('API Partner Server 15.0 URL', '$Api.Partner_Server_URL_150'), new Option('API Partner Server 16.0 URL', '$Api.Partner_Server_URL_160'), new Option('API Partner Server 17.0 URL', '$Api.Partner_Server_URL_170'), new Option('API Partner Server 18.0 URL', '$Api.Partner_Server_URL_180'), new Option('API Partner Server 19.0 URL', '$Api.Partner_Server_URL_190'), new Option('API Partner Server 2.5 URL', '$Api.Partner_Server_URL_25'), new Option('API Partner Server 20.0 URL', '$Api.Partner_Server_URL_200'), new Option('API Partner Server 21.0 URL', '$Api.Partner_Server_URL_210'), new Option('API Partner Server 22.0 URL', '$Api.Partner_Server_URL_220'), new Option('API Partner Server 23.0 URL', '$Api.Partner_Server_URL_230'), new Option('API Partner Server 24.0 URL', '$Api.Partner_Server_URL_240'), new Option('API Partner Server 25.0 URL', '$Api.Partner_Server_URL_250'), new Option('API Partner Server 26.0 URL', '$Api.Partner_Server_URL_260'), new Option('API Partner Server 27.0 URL', '$Api.Partner_Server_URL_270'), new Option('API Partner Server 3.0 URL', '$Api.Partner_Server_URL_30'), new Option('API Partner Server 4.0 URL', '$Api.Partner_Server_URL_40'), new Option('API Partner Server 5.0 URL', '$Api.Partner_Server_URL_50'), new Option('API Partner Server 6.0 URL', '$Api.Partner_Server_URL_60'), new Option('API Partner Server 7.0 URL', '$Api.Partner_Server_URL_70'), new Option('API Partner Server 8.0 URL', '$Api.Partner_Server_URL_80'), new Option('API Partner Server 9.0 URL', '$Api.Partner_Server_URL_90'), new Option('API Session ID', '$Api.Session_ID')]

 Thank the HTML standards for revealing once again an undocumented and convoluted yet powerful Salesforce back-end technology!

 

Hope that helps.  Mark as answer if it made your day as much as mine.  

 

- Nathan

 

 

Thx Paddy at Edmunds for showing me the Developer Tools excaliber to slay the Salesforce beast into submission!