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
Suresh babu 137Suresh babu 137 

Can we show error messae using future method

Can we show error messae using future method
Priyanka Sharma 1704Priyanka Sharma 1704
Hi Suresh,

 A future method runs asynchronously, so we cannot display errors on a page during runtime. But we can send emails programmatically from future method to notify the user that error has occurred.
Waqar Hussain SFWaqar Hussain SF
No you can not show error message using future method, however you can store error response in a field or can send email,