Salesforce Fact #133 | Scheduled flow conditional run

Suppose we have a use case where we have configured a scheduled flow which is supposed to run at a particular time every Monday, Wednesday & Friday.

We can implement this using custom label and subflow. We can develop a subflow which will return the day of week corresponding to the current date. And we can store the days of the week on which we want the job to run in a custom label and this would be configurable. Now in the flow, we can call the subflow and check whether the current day is the correct one to run the job and then proceed accordingly.

Attached are the screenshots.









Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow