Timer in Salesforce Screen Flow
It’s my very first post about lwc inside screen flow.
You ever want to track how long your user been opening the screen of your flow and give the time visibility to your flow users at the same time?
Timer FSC comes to the rescue!
I’ve build a very simple screen flow component that will help your users track how long they’ve been opening the screen and you’ll be able to access the data within your flow variable
Input and Output
- Total Milliseconds
type : Integer / Number
input description : As an input, you can use this attribute as a starting point of the counter (in milliseconds unit). for example you want the timer to start at 0:01:00:000, then you’ll have to input 60.000 in the attribute
output description : As an output, you will be able to access the data on how long the user been opening your screen flow (in milliseconds unit)
Important note: The timer will only be counting when user viewing your screen, if user open other tab in their browser, the timer will stop and continue when they back to the screen
Installation (production): https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5g000000UMrF
Installation (Sandbox) : https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5g000000UMrF
Credit : The original stopwatch component in lwc http://www.0to1code.com/create-your-first-lightning-web-component-stopwatch-app/