Generate and send reports, files or lists regularly with Microsoft Flow’s “recurrence” trigger

2–3 minutes

Capture.PNG

Automatically create and send reports, files and lists on a regular schedule using Microsoft Flow’s recurrence trigger. Whether hourly, daily, weekly or monthly you can deliver the most current and relevant data from SharePoint or OneDrive to interested parties via email without lifting a finger. Combine this with calculated columns in SharePoint and conditions for some awesome possibilities:

Alerts Calendar Relevance Routine
Report costs or expenditures above a certain amount Current month’s birthdays and/or workiversaries to your secretary Send expenses per department or individual to that department or individual Budget and salary or payroll figures weekly
Notify when an open ticket is idle for a week or incomplete Upcoming events per location Share evaluation status with supervisors for just their employees Recently closed deals and contracts
Survey responses or reviews under 3 stars Upcoming deadlines per department Client info and updates to proper salespeople based on location or product Distribute new hires’ contact/location info to the organization in weekly batches

Using the Trigger

  1. Create a flow with the trigger as “Schedule”
  2. Choose your dropdown option and recurrence variable (every 2 months, every 1 week, etc.)
  3. Different frequencies have different advanced options
    • Time zone
    • Start time
    • Days of the week
    • Hours & minutes
      2017-11-13_16-36-08

Build the rest of your flow and save!

Example

Here’s how to make a Flow that sends someone birthdays from the organization for the current week. See the bottom for a video. It uses:

  1. A SharePoint list with names as a text or person column and birthdays as a date column
  2. An always-live “today” column (whether by script, or this workflow workaround)
  3. Calculated columns for birthday and today without year (MM-DD)
    =TEXT(Birthdate,”MM-DD”) & =TEXT(Today,”MM-DD”)
  4. Calculated column for the date range you want. I will be sending this on Mondays, so I’ll do “Yesterday” through “Saturday” or WF_Yesterday (calculated column [Today]-1) and WF_Today+5 (calculated column [Today]+5)
  5. Calculated column that evaluates to “Yes” or “No” depending on if the birthday falls in the current week
    =IF(WF_Birthday>=WF_Yesterday,IF(WF_Birthday<=[WF_Today+5],”Yes”,”No”),”No”)
  6. A OneDrive (personal) excel file we’ll use to insert the “Yes” birthdays and email to our recipient. We’ll re-use this same file each week. You’ll need to have an existing table set up in the excel sheet with the column headers you wish (name and birthday). Select your headers and the row beneath –> Insert –> Table
    2017-11-09_14-52-27

Note: If your SharePoint list (or other data list) has more than 100 items/rows, you’ll need to adjust settings for the “get” step to allow a higher limit.

Capture.PNG


Discover more from Nate Chamberlain

Subscribe to get the latest posts sent to your email.

4 responses to “Generate and send reports, files or lists regularly with Microsoft Flow’s “recurrence” trigger”

  1. Jose Del Toro-Alonso Avatar
    Jose Del Toro-Alonso

    Hi, I follow the instructions in your great training but I am facing a problem. I am using Office 365 and the One Drive i have is the Business version. I saved the excel in a folder in the One Drive Business and use the Get File Content for Business. While creating the flow I am able to select the excel document and saved the flow. But I have an error running the flow at the Get File Content. The Error Details says that “The provided item ID is not valid for the requested drive. I am not sure what is the error. The excel document has the added rows and the data is correct in the table. But for some reason I continue facing this error. Any help?

  2. […] email notifications of each response or none at all (or use Microsoft Flow to send you weekly email reports of […]

  3. Jose Muga Avatar

    Awesome post dude!! this is amazing. Still learning Flow and Powerapps. By the way what did you use for the gif creations in the tutorial?

    1. SharePoint Librarian Avatar

      Thanks! I use ShareX for my gifs. Free and easy to use

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Nate Chamberlain

Subscribe now to keep reading and get access to the full archive.

Continue reading