I have to create PDF file in trigger upon user approval through email. Since Getcontent() method is not allowed in trigger, I am using weservice to create PDF.
As user is approving through email only, it is not possible to get the session id to pass webservice.
Is there any way to get session id?
(Or)
is there any other way to create PDF from trigger?
Note: I am using PDF vf page in some other button also, to maintain integrity using the same page.
- I am using standard Approval process email approval functionality
- PDF will be stored as attachment to the record