You need to sign in to do that
Don't have an account?
Vignesh Ramshetty
How to create Countdown timer in apex class ?
Whenever any record is created in any object we want to run a timer if it reach 15 min then we want to perform business logic , Can any one help of creating this by apex class ?
- I don't believe Apex is necessary for this. Directly creating a lightning component allows you to take advantage of javascript setTimeOut or setInterval.
- You can refer stack exchange link for a sample lightning component for the timer.
https://salesforce.stackexchange.com/questions/103844/examples-for-lightning-timer-component- For More about javascript setTimeout please refer to the below link.
https://www.w3schools.com/js/js_timing.aspThere is a salesforce forum link having a question related to the countdown timer you also can refer to it.
https://developer.salesforce.com/forums/?id=9060G0000005m3EQAQ
Please mark it as Best Answer if the above information was helpful.
Thanks.