Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Session Id is invalid or has expired


When I execute the apex code to generate a Drawloop document using Loop.loopMessage works when I am in Salesforce classic but not if I trigger the logic in Lightning.
I keep getting the error: "The included Salesforce Session Id is invalid or has expired.  If you continue to receive this error, please have your administrator verify that \"Lock sessions to the IP address from which they originated\" is not checked in your Salesforce security settings: Setup -> Administrative Setup -> Security Controls -> Session Settings"
I have checked and we don't have this option checked.
Do you know what else could it be?
0 Kudos