Are you trying to call a vf page from trigger ? If yes then answers is no.
If you are trying to access contents of visualforce , then what contents you are trying to access - the answer here is also no but in case you want to access data from database you can simply query it from object on which the page is developed
Are you trying to call a vf page from trigger ? If yes then answers is no.
If you are trying to access contents of visualforce , then what contents you are trying to access - the answer here is also no but in case you want to access data from database you can simply query it from object on which the page is developed
In trigger and future method we can't use getContent() method of PageReference.
But here is workaround for this https://developer.salesforce.com/forums?id=906F00000008yDgIAI
Please mark as solution if it helps you. Enjoy Apex.
eg:-
SELECT ApiVersion, ControllerKey, ControllerType, CreatedById, CreatedDate, Description, MasterLabel, LastModifiedById, LastModifiedDate, Markup, Name, NamespacePrefix, Id, SystemModstamp FROM ApexPage