cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Flow to send reminder to email when a start date approches

I am trying to create a flow that will check employees start date and send reminder email to HR and other departments 5 days before start date. I have already created an onboarding list with a column ‘Start Date’ to get the start date of an employee. I have tried to use the automated template and tried to create from blank but no luck.

 

I have checked other forms for this solution but the expression shows Invalid.

 

Here is a what have so far.

 

Thank you in advance!

Flow.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Flow to send reminder to email when a start date approches

@Henok22 

Hi there!   So, I came at this the other way (and I don't do expressions really well) so I ended up with something like this:

 

  • Recurrence trigger running once a day
  • Initialize a string variable for the StartDate
  • Add 5 days to utcnow() using "Add to time" (same as your expression, I imagine)
  • Set the variable to the calculated time, and formatting it to match the MM/dd/yyyy format.
  • Get the items in the list
  • Condition to match the Start Date on the list with the varStartDate.  If there's a match, send an email...if not, keep on truckin'.

The weirdness for me was that my data was in Excel, so the dates were stored as those weird Excel date format integers, but the SP version of that should work ok.

 

Let me know what you think.

-Ed-

 

If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Flow to send reminder to email when a start date approches

@Henok22 

Hi there!   So, I came at this the other way (and I don't do expressions really well) so I ended up with something like this:

 

  • Recurrence trigger running once a day
  • Initialize a string variable for the StartDate
  • Add 5 days to utcnow() using "Add to time" (same as your expression, I imagine)
  • Set the variable to the calculated time, and formatting it to match the MM/dd/yyyy format.
  • Get the items in the list
  • Condition to match the Start Date on the list with the varStartDate.  If there's a match, send an email...if not, keep on truckin'.

The weirdness for me was that my data was in Excel, so the dates were stored as those weird Excel date format integers, but the SP version of that should work ok.

 

Let me know what you think.

-Ed-

 

If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

View solution in original post

Highlighted
Frequent Visitor

Re: Flow to send reminder to email when a start date approches

@edgonzales  Thank you!


I have just found a solution for it.

 

Used this expression  formatDateTime(addDays(utcNow(),7),'MM-dd-yyyy').

used URL decoder to get the actual value of the column b/c the space was an issue. 

 

Flow.JPG

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (10,504)