We have utilized the Schedule-Triggered flow to automate sending the emails. Now, we want to show you how to use Schedule-Triggered flow to automatically deactivate the users! In Flow Builder, there is a standard field for the User object called “Last Login Date“. This field makes the solution very easy to build, so let’s dive in!
* Big thanks to Gustavo Seluja for sending in the case!
Lulu Mobile wants to automate their user management. If a user hasn’t logged in for the past 90 days, they want to deactivate this user automatically. At the same time, they want to add a note of “90 Days No Login” in their custom Note field.
(Assumption: There is a “Note” text field on the User object)
We will use the Schedule-Triggered flow. In the automate email post, we created a formula field and let it run daily. However, we cannot do the same for the User object because we can only reference the Last Login Date in Flow Builder but not in the formula field. So instead of evaluating the last login date in Choose Object and Filter Conditions, we will use a Decision element to do so.
This means, whenever the flow runs, all active users will be included in the flow. Thus, I will recommend running this flow weekly instead. Of course if you believe your instance has enough capacity and you don’t have too many users, you can still run this daily.
Please wait while flipbook is loading. For more related info, FAQs and issues please refer to DearFlip WordPress Flipbook Plugin Help documentation.
|Schedule-Triggered Flow||Get RecordsUpdate Records||Assignment|
Does the solution solve your problem? If not, write us what your problem is and we will build the flow for you!