function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
App SharkApp Shark 

Calling VF Page by using Trigger

I have a requirement to call  Vf Page by using trigger, is there a way to call a page by using trigger.
Himanshu ParasharHimanshu Parashar
Hi,

There is no way by which you can call Vf page from trigger. reason being Trigger works at Database level. though you can put vf page url in adderror function and user can click on that link to go to that specific page.


Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant

P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
ManojjenaManojjena
Hi ,
I think it is possible to call VF page from trigger but not directly but indirectly .Which I have already done in my project .
You can check this link below which will help you to solve your problem .
https://jungleeforce.wordpress.com/2013/05/08/generate-a-pdf-and-attach-it-to-record-from-a-trigger-in-salesforce/

If this  helps you to solve your problem please mark it as best answer. It will help other to find best answer