I have a batch apex class which shall generate PDFs and attach them to an object.
However wehenever I run the job, all generated Attachments contain a simple HTML-page which redirects to the login-page of SF. This is the same redirect page which is generated, when one tries to jump to a SF-page but is not yet logged in.
Is that a bug, a missing feature or should it work?
I already figured out that asynchronous methods have the same problem.
any help is appreciated.