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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Daily reporting from a...
Power Automate
Answered

Daily reporting from a teams spreadsheet

(0) ShareShare
ReportReport
Posted on by 63

Hello,

 

I have a flow where my team fill in a form and input data, this is then recorded on a teams spreadsheet in the background. 

I now wish to create a new flow where I can send selected people in the business a daily report with todays downtime, which will be picked up from the spreadsheet in teams.

 

I’m very basic with power automate, is there any good guides or videos that will show me how to do this?

 

All I want is todays inputs on a daily basis sent via an email.

 

This is as far as I can get with errors.

 

MarkCoates_0-1661917778565.png

 

Categories:
I have the same question (0)
  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @MarkCoates ,

     

    Maybe you could try the following expressions: 

    formatDateTime(item()?['Date'], 'yyyy/MM/dd') 
    formatDateTime(utcNow(), 'yyyy/MM/dd') 

    vyujincuimsft_0-1662104514781.png

     

     

     

    Best Regards,

    Charlie Choi

  • MarkCoates Profile Picture
    63 on at

    Hi Charlie,

     

    I get the following error message;

     

    The execution of template action 'Filter_array' failed: The evaluation of 'query' action 'where' expression '@lessOrEquals(formatDateTime(item()?['Date'], 'yyyy/MM/dd'), formatDateTime(utcNow(), 'yyyy/MM/dd'))' failed: 'In function 'formatDateTime', the value provided for date time string '' was not valid. The datetime string must match ISO 8601 format.'."

     

    My date columns:

      
      
    2022-08-312022-08-31T00:00:00
    2022-09-042022-09-04T22:17:48
  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @MarkCoates ,

     

    It seems that there are null values in the data source. 

    vyujincuimsft_0-1662343970126.jpeg

    vyujincuimsft_4-1662344669233.png

    In addition, maybe you could try the following expressions.

    @and(not(equals(length(item()?['Date']), 0)),lessOrEquals(formatDateTime(item()?['Date'], 'yyyy/MM/dd'), formatDateTime(utcNow(), 'yyyy/MM/dd')))

    vyujincuimsft_5-1662344741670.png

    vyujincuimsft_6-1662344759062.png

     

     

     

    Best Regards,
    Charlie Choi

  • MarkCoates Profile Picture
    63 on at

    Hi Charlie,

     

    Got a report through on the test but it is sending everything on it rather than just data from today?

     

    Any ideas? Maybe the lessorequals should be greaterorequals? 

     

    MarkCoates_0-1662345149089.png

     

  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @MarkCoates ,

     

    Please try the following expressions: 

    @and(not(equals(length(item()?['Date']), 0)),equals(formatDateTime(item()?['Date'], 'yyyy/MM/dd'), formatDateTime(utcNow(), 'yyyy/MM/dd'))) 

     

     

    Best Regards,
    Charlie Choi

  • MarkCoates Profile Picture
    63 on at

    MarkCoates_2-1662421665108.png

     

  • MarkCoates Profile Picture
    63 on at

    Hi Charlie,

     

    Thank you very much, that is up and running!

     

    Just another issue now, when I go to add a Create a HTML table and customise it, it automatically applies an "Apply to all" condition on it and i'm getting multiple e-mails or multiple tables in 1 e-mail?

     

    MarkCoates_1-1662421573247.png

     

  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @MarkCoates ,

     

    Maybe you could try to write the expression manually instead of using Dynamic content directly.

    vyujincuimsft_0-1662435903388.png

    item()?['ColumnName'] 

    vyujincuimsft_4-1662436153801.jpeg

    vyujincuimsft_5-1662436174067.png

    vyujincuimsft_6-1662436220742.png

     

     

    Best Regards,
    Charlie Choi

  • MarkCoates Profile Picture
    63 on at

    Charlie - Thank you very much!

     

    One final question (Hopefully!) You've been a really great help...

     

    Is there a way to show just the dd/mm/yyyy in the table and remove all the seconds and minutes stuff?

  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @MarkCoates ,

     

    Please try the following expressions.

    formatDateTime(item()?['Date'], 'dd/MM/yyyy')

     

     

    Best Regards,

    Charlie Choi

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 459

#3
11manish Profile Picture

11manish 382

Last 30 days Overall leaderboard