Send a message on Microsoft Teams every day until a specified date

Send a message on Microsoft Teams every day until a specified date

Trigger a message on Microsoft Teams everyday until a specified date and turn off the flow automatically on that date.

We will be using Scheduled Cloud Flow for this use case.

  1. Select Scheduled cloud flow.

  2. Provide a Flow name, select the date and time at which you want the flow to start and then click on Create.

  3. Expand Recurrence and provide the inputs for the Time zone field and At these hours field as below.

  4. Click on New Step and select Current Time.

  5. Click on New Step again, and select Convert time zone.

  6. Provide the inputs to the fields as below.

  7. Click on New Step and select Substring.
    In the Text field select Converted Time from Dynamic content, Substring position as 0 and Length as 10.

  8. Click on New Step and select Condition.

  9. Provide Condition as Subtring is equal to "date-on-which-you want-the-flow-to-turn-off " in the format YYYY-MM-DD.

  10. Under the If yes section, click on Add an action.

  11. Search for Turn Off Flow under Actions and select the same.

  12. Provide the inputs to the Environment field and the Flow field.
    In the Flow field, you want to select the flow which you want to turn off i.e. this flow itself.

  13. Under the If no section click on Add an action and select Post message in a chat or channel.

  14. Provide the Group chat/channel name and the message you want to post.

  15. Click on Save

    Your flow for this use case is ready to test.

Did you find this article valuable?

Support Priya Sinha by becoming a sponsor. Any amount is appreciated!