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 Platform Community / Forums / Power Automate / Send a mail from a table
Power Automate
Unanswered

Send a mail from a table

(0) ShareShare
ReportReport
Posted on by 969

Hi,

 

I have a Flow that counts in an excel file on Sharepoint how much mail has been received in the inbox 


Now I would like an email to be sent every day with the number of emails that were received yesterday.
I have tried the following but when I indicate in the flow that he should look at the date of yesterday (07-05-2019) then that is no longer correct with the day of tomorrow.

How should I change that?

 

     Table 3

flow2.png

 

flow1.png

 

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    on at
    Re: Send a mail from a table

    Hi @frixel ,

     

    I speculate that the configuration you have in Key Value should be the current date of the day the Flow runs.

    If you want to use yesterday's date here, you could use addDays() function to get the date of yesterday.

    Like:

    11.PNG

    Hope it helps.

     

    Best Regards,

  • frixel Profile Picture
    969 on at
    Re: Send a mail from a table

    Hi @v-bacao-msft 

     

    This is perfect, but is it also posible te get more then 1 date?

    Like this? 

    addDays(utcNow(),-1,-2,'dd/MM/yyyy')
    Or like this?
    flow3.png
     
    When i do this the flow fails.
  • v-bacao-msft Profile Picture
    on at
    Re: Send a mail from a table

    Hi @frixel ,

     

    Please try this expression:

    addDays(utcNow(),-2,'dd/MM/yyyy')

    Image reference:

    14.PNG

     

    Best Regards,

  • frixel Profile Picture
    969 on at
    Re: Send a mail from a table

    Hi @v-bacao-msft 

     

    Excuse me for not being clear.

    I mean to send two dates. So yesterday and the day before yesterday.

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Send a mail from a table

    Then you need to add additional Get a row action to get the data of the day before yesterday.

     

    Yesterday:

    addDays(utcNow(),-1,'dd/MM/yyyy')

    the day before yesterday:

    addDays(utcNow(),-2,'dd/MM/yyyy')

    Please try again.

     

    Best Regards,

  • frixel Profile Picture
    969 on at
    Re: Send a mail from a table

    Hi @v-bacao-msft 

     

    Thanks again for your quick response.Smiley Happy


    Is it also possible to update the pivot table (where the table gets its data from) before the data is taken from the table?
    So that I always have the current data in the table?

  • v-bacao-msft Profile Picture
    on at
    Re: Send a mail from a table

    Hi @frixel ,

     

    There seems to be no suitable way to accomplish this through MS Flow.Smiley Sad

     

    Best Regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard