I'm seeing conflicting information:

On one hand, the lightning:container docs state that you can use this npm package to get a REST Session Key.

On the other hand, the spring 18 release notes say that API Access for lightning containers has been revoked.

I tried to build the SOQL example app listed in the documentation and I did in fact get a 401: This session is not valid for use with the REST API.

So... I'm guessing it's not allowed anymore and this is just an example of Salesforce being horrible at updating their documentation?


This is just another example of outdated documentation. As mentioned in the release notes, we cannot make REST api calls from lightning containers anymore.

  • 1
    Please do not use signature lines on Stack Exchange. Each post you make includes a link to your profile. – David Reed Apr 5 at 11:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.