Closed mgcdanny closed 5 years ago
Pls make sure that the visibility settings for the pem are correctly set.
Visibility is set to "All Users" , is that "correctly set"?
FWIW this is where the problem is, I was able to comment it out and just hardcode the PEM file for now:
ContentVersion base64Content;
// Try to retrieve certificate
/*
try {
base64Content = [SELECT Title, VersionData FROM ContentVersion where Title=: tokenFileName AND IsLatest=true order by CreatedDate DESC LIMIT 1];
} catch (QueryException e) {
throw new Einstein_ConfigurationException('Could not retrieve the Einstein Platform certificate file: einstein_platform_playground', e);
}
This project gets archived, as it's functionality is now available on the AppExchange.
For whatever reason the PEM file is not found when I run my code as a Future or Queueable Apex class. However, the file IS found when I run it as "anonymous execution"