cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Pam
Level: Powered On

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
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?

Pam
Level: Powered On

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.

Pam
Level: Powered On

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

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 165 members 4,231 guests
Please welcome our newest community members: