+ Start a Discussion
M ParnellM Parnell 

Trailhead Module API Basics, Use BULK API: Get a Session ID = Authenticating POST HTTP Request

Each time I attempt to execute using Workbench, it tells me my SessionID cannot be found.
Attached is the screenshot of my setup before clicking "Execute".
I've gone through and performed the steps a few times to verify each one, and my Session ID isn't changing, so I'm curious as to why it's not finding my Session ID.


Setup screen for the Get Session ID portion of API Basic Trailhead Module

karthikeyan perumalkarthikeyan perumal
Hello 

Use the session ID like below

Authorization: Bearer [session ID] in you request

befor give you the session excute these statement in developer console 

System.debug(UserInfo.getSessionId());

Hope this help you. 

Thanks
 
M ParnellM Parnell
Hello Karthikeyan,
Thanks for that tip I'll definitely give it a go.
I appreciate you taking the time to read my post. I love how people collaborate within Salesforce.

Thanks again for your tip!
Veena GopalVeena Gopal
Hi M Parnell, I think you should mark Karthikeyans answer as best answer. I was struggling with the bulk api trailhead since 2 days and his idea came to my rescue.
Jack DermodyJack Dermody
Lads,

Simple way to get it is in chrome:

Goto View>Developer> Javascript Console

Paste in:
document.cookie.match(/(^|;\s*)sid=(.+?);/)[2];

There you have it.