Skip to content

Instantly share code, notes, and snippets.

@JitendraZaa
Last active September 28, 2017 01:15
Show Gist options
  • Select an option

  • Save JitendraZaa/cc3cdb80e97d0cde197511a806b4dfab to your computer and use it in GitHub Desktop.

Select an option

Save JitendraZaa/cc3cdb80e97d0cde197511a806b4dfab to your computer and use it in GitHub Desktop.
How to get Salesforce SessionId in future Method, Batch Apex or any other Async Apex - http://www.jitendrazaa.com/blog/salesforce/enterprise-territory-management-auto-account-assignment-using-apex/
<apex:page contentType="text/plain" >{!$Api.Session_Id}</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment