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
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