web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Flow to send email depending on contents of two excel cells

(0) ShareShare
ReportReport
Posted on by 29

Hi folks

 

I've been able to create basic flows before but would greatly appreciate some help with my latest one.

 

I have the following two flows;

 

FLOW 1 - this is all set up and running fine, so is just here for context

Trigger - completion of an MS form

Some info from the form is added to an excel table.  Two columns in the table relate to future dates; Date 1 holds a date when the email needs to be sent and Date 2 holds a date to confirm the email has been sent.  Currently Date 2 is empty by default.

 

FLOW 2

Trigger - scheduled daily recurrence

Current time

Convert current time to UTC+00:00 Dublin, Edinburgh, Lisbon, London

Check excel table; if Date 1 = today's date AND Date 2 is empty [HELP NEEDED ON THIS PART AS THIS IS WHERE IS FAILING]

- send an email (I'm OK with this part)

- update Date 2 cell with today's date (HELP NEEDED ON THIS PART)

 

Here's a screenshot of flow 2.  It currently includes Initialize Variable and Set Variable as I was trying to set up and use a boolean value re Date 2 in the condition;

 

JCS1665_0-1654611584323.png

Here's hoping you can help.

 

Thanks

Jan

I have the same question (0)
  • v-liwei-msft Profile Picture
    on at
    Re: Flow to send email depending on contents of two excel cells

    Hi @JCS1665 ,

     

    When you use the “List rows present in a Table” action in Power Automate to get data from Excel that contains dates, you might be surprised to see that the data in the date column is actually an integer and not a date.
     
    This is because Excel stores dates as an integer. The integer represents the number of days that have elapsed since the 1st January, 1900.
     
    You can use the addDays function to add the integer returned by Excel to '1899-12-30', then use the convertTimeZone function to convert it to your time zone time: convertTimeZone(addDays('1899-12-30',int(item()['Date1'])),'sourceTimeZone','destinationTimeZone')
    vliweimsft_0-1654852233346.png

     

    vliweimsft_1-1654852233349.png

     


     

    Conditions of use: 

    1.greater than or equal to today's start time and less than or equal to the end time to determine whether the time of Date1 is within the whole day of today.

    2. Check if Date2 is empty. 

    3.If the condition is met, use "update a row" to update Date2.

    vliweimsft_2-1654852233351.png

     

     


     
     

    Best Regards,

    Levi

     

     

  • JCS_1665 Profile Picture
    29 on at
    Re: Flow to send email depending on contents of two excel cells

    Thanks so much for your help @v-liwei-msft.  I'll take a look at this next week and report back.  Have a great weekend.

  • JCS_1665 Profile Picture
    29 on at
    Re: Flow to send email depending on contents of two excel cells

    Hi @v-liwei-msft, I've tried applying your suggestion but have fallen at the first hurdle.  The expression in the first part of my Condition is this:

     

    JCS1665_0-1655121037801.png

    But when I try and select the StartOfDate expression for the third "Choose a Value" column, I get a message saying "This expression is invalid".

     

    What am I doing wrong?

    Thanks

    Jan

  • v-liwei-msft Profile Picture
    on at
    Re: Flow to send email depending on contents of two excel cells

    Hi @JCS1665 ,

     

    Change this to UTC instead of UtcNow :

    vliweimsft_0-1655200663166.jpeg

     

    Best Regards,

    Levi

  • JCS_1665 Profile Picture
    29 on at
    Re: Flow to send email depending on contents of two excel cells

    Hi @v-liwei-msft 

    I'm confused; isn't the part you've suggested I change the Source Time Zone, e.g., isn't that normally UTC for MS products?

    Thanks

    Jan  

  • JCS_1665 Profile Picture
    29 on at
    Re: Flow to send email depending on contents of two excel cells

    Hi @v-liwei-msft - I did try your suggestion by the way but got the same result as before.

     

    Regards

    Jan

  • Verified answer
    JCS_1665 Profile Picture
    29 on at
    Re: Flow to send email depending on contents of two excel cells

    Hi @v-liwei-msft - due to time constraints I've had to go with a simpler solution of adding an outlook event instead of sending the email.  Thanks again for your help though, much appreciated.

  • v-liwei-msft Profile Picture
    on at
    Re: Flow to send email depending on contents of two excel cells

    Hi @JCS1665 ,

     

    Glad to see you solved the problem.
    You could mark your answer/solution as a 'Solution' to close the case.

     

    Best Regards,

    Levi

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard