+ Start a Discussion
ramesh babu 114ramesh babu 114 

Can we show error message using future method?

Can we show error message using future method?
NagendraNagendra (Salesforce Developers) 
Hi Ramesh,

You can show the Page messages for the future method.
 
In the controller, class catch the exception (custom or standard depends on your requirement)and add it to the page messages in the catch block.

Hope this helps.

Please mark this as solved if it's resolved.

Thanks,
Nagendra