You can use Schedule if you want to run your flow at a particular schedule, time or day.
In this example, we'll use Schedule to "Create a flow to post a message on Slack at 10 am every Friday."
- Go to the Flows tab from the top menu.
- Create a new flow.
- Search and select "Schedule."
- You will see the configuration screen of Schedule. Here you can customize various aspects of Schedule to enable your flow to run on a specific time and day.
- Enter the Day of the Month if you want to schedule your flow to run on a particular day of the month.
- Enter "Friday" in the Days of the Week field, so that your flow gets scheduled to run every Friday.
- Enter "10" in the Run Hour field. Your flow will get scheduled to run at 10 am.
- Enter the 'Minutes' of the hour.
- Enter the 'Month' of the Year.
- Enter * for any month, 1-12 for once a year, or comma-separated numbers to run the flow on these dates.
- Enter the Day of the Month.
- Enter * for any day, 1-31 for once a month, or comma-separated numbers to run the flow on these dates.
- Enter * for any day, 1-31 for once a month, or comma-separated numbers to run the flow on these dates.
- Enter the Day of Week(cron).
- Enter * for any day, 0-6 for once a week, or comma-separated numbers to run the flow on these days.
- Enter the Run Hour.
- Enter * for any hour, 0-23 for once a day, or comma-separated numbers to run the flow on these hours.
- Enter the Run Minute.
- Enter * for any minute, 0-59 for once an hour, or comma-separated numbers to run the flow on these minutes.
- Enter * for any minute, 0-59 for once an hour, or comma-separated numbers to run the flow on these minutes.
- Enter the Offset in minutes.
- This field does not affect previous cron fields.
- Enter your Timezone, e.g., Europe/London.
- The Timezone is UTC by default.
- You can also enter the JSON manually or through dynamic tags to configure the above fields. Learn how to add dynamic tags here.
- Click Done.
- Search and select "Slack" in the child step.
- Add the action "Post Message."
- Click "Add My Account."
- You will see a window according your app's authorization type.
- Since Slack uses OAuth, you will see the following window where you will connect your account.
- You can sign up for free if you don't have an account.
- Click Allow.
- Select the Channel in which you want to post your message.
- Enter the Message Text.
- Check the box if you want to post the above message as a user.
- Enter the Bot Name if you didn't check the box above.
- Enter the Bot Icon Emoji if you chose to post the message as a bot.
- Enter the Bot Icon URL if you chose to post the message as a bot.
- Check the box if you want to find and link channel names and usernames. For example, @general will be tagged if it is part of the text message.
- Click Continue.
- Click Test.
- You will receive a success message when a "Post Message" action is scheduled in Slack.
- Expand 'Test Result' if you want to view the request and response.
- The message scheduled to be posted on Slack can be seen in the response body.
- The message scheduled to be posted on Slack can be seen in the response body.
- You can add more steps that you want to get executed at the scheduled date/time.
- Save an publish your flow.
- When a user sets up an integration based on the above flow, a message will be posted to their selected Slack channel every Friday at 10am.
You can schedule any action to be carried out in any connected app at a specific time, day, date etc.
Comments
0 comments
Please sign in to leave a comment.