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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Retrieve lines from ex...
Power Automate
Unanswered

Retrieve lines from excel table and send them per mail

(0) ShareShare
ReportReport
Posted on by

Hey everyone

 

I am very new to power automate and not an IT expert.

 

I am trying to create a work flow retrieving an excerpt from an excel table once every week and send this table per mail.

 

The workflow should only filter entries in the table added within the last 7 days (Date of Receipt not older than 7 days), create a table containing all the headers except "number" and add this table to a mail.

 

The source excel table is deposited in a group looks abit like this:

 

NumberProductDate of receiptDue dateTask 
99990Apples2021-09-102021-09-17Make Pie
99991Cheese2021-09-172021-09-24Buy cracker
99992Coffee2021-09-222021-09-29survive
99993Balloons2021-10-022021-10-09party
99994bluebrix2021-10-222021-10-29build miniature 
99995Cats2021-11-032021-11-10make catvideos
99996Baboons2021-11-042021-11-21run away

 

Could you give me a walkthrough how to build the workflow step by step?

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @LEonie 

     

    To read the excel file in Power Automate you need to have a table associated with your Excel file. You could manually create this table or dynamically using Power Automate GRAPH API. I have written a blog about this.

     

    Please see this link.

     

    Power Automate – Excel – How to create Table and Read the Contents Dynamically? | @mydevexperience #Flownaut Super User III (@abm) (wordpress.com)

     

    Once you create the table you can read the contents via Power Automate. Please have a look at this video about how to filter Excel Date rows.

     

    Power Automate - How To Filter Excel Date Column Values? - YouTube

     

    In your case you need to filter the last 7 days. Use the expression below to get the date for the last 7 days.

     

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

     

    Thanks

     

     

     

     

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @LEonie ,

     

    I assume that 'Date of receipt' column and 'Due date' column are date column in excel table.

    If 'Due date' - 'Date of receipt' <=7 days,   keep the item.

     

    I did a test for you.

    vxiaochenmsft_0-1636094992532.png

    vxiaochenmsft_1-1636095023307.png

    vxiaochenmsft_2-1636095057566.png

    div(sub(ticks(item()?['Due date']), ticks(item()?['Date of receipt'])), 864000000000)

    vxiaochenmsft_3-1636095095912.png

    vxiaochenmsft_4-1636095104425.png

    vxiaochenmsft_5-1636095113912.png

    vxiaochenmsft_6-1636095135379.png

    vxiaochenmsft_7-1636095155327.png

     

    Best Regards,

    Wearsky

     

     

     

     

     

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard