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

Global Variables through Static Resources (JS)

Hi all,

I would like to know if it possible to access SF Global Variables through static resource (js file),

for example session id ? I tried to do it without success.


As we know inside a VF Page it's possible to get the session by {!$Api.sessionId} but I coulndn't achieve it through static resource.


any help will be highly appriciated,

Thanks in advance.