+ Start a Discussion
TRIPTI JAIN 2TRIPTI JAIN 2 

how to access salseforce sid in lightning domain.

How can i acces the salesforce session id if i am in lightning domain. I am trying to call salseforce API from my lightning domain. But as they both have different seesion ids in cookies. So Not able to get data. 
Thanks,
Khan AnasKhan Anas (Salesforce Developers) 
Hi Tripti,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

https://salesforce.stackexchange.com/questions/110515/getting-session-id-in-lightning

https://salesforce.stackexchange.com/questions/217254/issue-with-getting-session-id-using-vf-page-from-lightning-component

https://sfdcpanther.wordpress.com/2018/02/05/how-to-call-salesforce-api-from-lightning-component/

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas