Getting sick is never fun, especially with small kids at home. This is why it’s important that we take
our meds quickly to avoid prolonging our recovery. In the past, I would stack up each on some common meds to be ready just in case I needed them. However, I would still find myself either missing some, buying the same ones I already have, or having expired ones because I bought too many in the past. Well, now that I have Flow and PowerApps, that is all in the past.
In this post, I’m describing a simple MedApp I built to help me keep track of the meds I have at home and replenish any that are about to expire. The app serves a few purposes:
- Keeps track of what apps I have at home and when they expire
- Notify me when meds are about to expire
SharePoint List
|
Field Name
|
Description
|
Type
|
|
Title
|
Name of medication
|
Single line of text
|
|
Description
|
Description of
medication |
Multiple lines of text
(plain text) |
|
Expiry Date
|
When the meds expire
|
Date
|
Flow
solution has a time-triggered Flow that checks on a nightly basis if there are
any meds that are about to expire (within two weeks) and sends a notification via email. There are three actions and one control required to build this flow.
- Get a list of all items who’s due date is within 15 days. To do so, I’m leveraging the following Flow expression in the Get items action under the Filter Query field formatdatetime(adddays(utcnow(),15),‘yyyy-MM-dd’)
- Create an HTML table for all the items using the Create HTML table action. I only need the Title and Expire Date (Expiry_x0020_Date) for my email
-
Finally, I use the Send email action to notify me of the medications that are about to expire

