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 salesforce.com 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?