How do I get user's session ID?

  • 1
  • Question
  • Updated 6 years ago
  • Answered
I'm creating a button that will launch a DrawLoop function to generate a nice doc for printing in another window, but it needs the current user's Salesforce session ID. How do I access that?
Photo of Peter Bender

Peter Bender, Champion

  • 6,246 Points 5k badge 2x thumb

Posted 6 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Official Response
The Session Id and some other Api related merge variables are accessible through Skuid merge syntax:



{{$Api.Session_Id}}
{{$Api.Partner_Server_Url}}
{{$Api.Enterprise_Server_Url}}