cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Scheduling recurring email with filter array of excel spreadsheet

Hi

 

I am attempting to do a flow that will send an email to one specific email address every month- the email needs to contain a filtered excel spreadsheet so that it only includes rows entered in the last month.

 

So far I have this:

Flow.jpgEmail Filtered Excel Flow

 

 

We have tried to "create file" in between "Filter array" and "Send an email"- but we couldn't get all the columns of data to be brought over (and to be honest, we don't actually need the data to be saved as a file- it only needs to be temporary).

 

Doing it this way, I can't seem to figure out what to put into Attachment Content.

 

Or am I completely off-track altogether?

 

Thanks

 

Pam

3 REPLIES 3
Highlighted
Leo09
Level 8

Re: Scheduling recurring email with filter array of excel spreadsheet

Maybe you can put the rows in email body field? Will this work?

Anonymous
Not applicable

Re: Scheduling recurring email with filter array of excel spreadsheet

The email is going to a Government department and they specifically want it in an attached spreadsheet so that they can save it in their appropriate system. So I don't think they will accept the data as part of the email body.

Anonymous
Not applicable

Re: Scheduling recurring email with filter array of excel spreadsheet

OK- so I checked an they will accept the data in that format. I managed to get the data to come across into an email- however realised the table in my excel was too small and therefore the filter wasnt capturing all the data. 

So I fixed the table and now I get this error message with my filter array:

InvalidTemplate. The execution of template action 'Filter_array' failed: The evaluation of 'query' action 'where' expression '@greaterOrEquals(item()?['DateCreated'], addDays(utcNow(), -28, 'yyyy-MM-dd'))' failed: 'The template language function 'greaterOrEquals' expects two parameter of matching types. The function was invoked with values of type 'Null' and 'String' that do not match.'.

 

The expression was so that I could filter for data entered in the last 28 days- and when my table was only 5 lines, the expression worked. However now that I have extended the table to 200 lines, it doesnt work.

 

Can anyone help me fix my expression?

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,409)