𝗛𝗮𝗽𝗽𝘆 𝗡𝗲𝘄 𝗬𝗲𝗮𝗿, 𝗲𝘃𝗲𝗿𝘆𝗼𝗻𝗲!
Apologies for all the Screen Action posts lately, I just love this new feature! I promise this will be the last one (for this year, at least 😅).
This time, I wanted to try something fun: I built a countdown using Screen Actions and an autolaunched flow. Here's how it works:
- The flow takes a number as input, subtracts 1, and returns it as output.
- The magic happens when the output of the flow is fed back as the input. It creates a loop that retriggers itself, which basically looks like a countdown.
⭐ Key takeaways from this experiment:
- 𝗦𝗰𝗿𝗲𝗲𝗻 𝗔𝗰𝘁𝗶𝗼𝗻𝘀 𝗰𝗮𝗻 𝗿𝗲𝘁𝗿𝗶𝗴𝗴𝗲𝗿 𝘁𝗵𝗲𝗺𝘀𝗲𝗹𝘃𝗲𝘀: Be cautious to avoid infinite loops!
- 𝗦𝗽𝗲𝗲𝗱 𝗼𝗳 𝗦𝗰𝗿𝗲𝗲𝗻 𝗔𝗰𝘁𝗶𝗼𝗻𝘀: Notice how quickly the numbers count down. That’s the speed of reactive Screen Actions (It depends on the autolaunched flow being called though).
- 𝗦𝗰𝗿𝗲𝗲𝗻 𝗖𝗼𝗺𝗽𝗼𝗻𝗲𝗻𝘁 𝗩𝗶𝘀𝗶𝗯𝗶𝗹𝗶𝘁𝘆: Use the output of the Screen Action to hide or show components on the screen in real time. For instance, when the countdown reaches 0, I hide the numbers and display an image with emoji confetti 🎉
The potential use cases for the Screen Action feature are truly limitless, and I can't wait to use it! 🤩
What do you think of this new feature? 🤔
Let me know in the comments!
✅ Reactive Screen Actions in Flow
https://lnkd.in/ddKXKDKF
✅ Emoji Confetti Screen Component
https://lnkd.in/drchvccP
✅ Read this post to see the new Flow features of the Spring '25 release.
https://lnkd.in/dKbhCsxT
#salesforce #trailblazercommunity