Hi,
I am new developing in this technology. Would it be possible to read from an excel file, where there is a column named "date", and get all those records that match the current date? And then send an email with those selected records?.
thanks in advance.
Solved! Go to Solution.
Hi @jesus_obiang,
Yes, that is possible.
But first it would require the Data within the Excel to be formatted into a table.
Create or delete an Excel table
You could rename Excel table Name by following:
Then follow the steps in the image below:
Steps should be:
1. Add the Recurrence (Schedule) Trigger, specify the Frquency and Interval,
2. Add Excel ->Get Rows Action, specify the Excel file and the corresponding Table,
3. Add the Filter Array action, Add the Excel ->Get Rows Value content as the From input, then under condition, click advanced mode, copy and paste the following code:
@equals(formatDateTime(item()?['Date'],'yyyy/MM/dd'), utcnow('yyyy/MM/dd'))
This Assumes you have a Date Column defined in your Excel table,
4. Add the Create HTML table Action, specify the including headers option to yes,
5. Add the Send an Email action, click advanced options, specify the Is HTML option to Yes.
The running results:
Regards,
Michael
Hi @jesus_obiang,
Yes, that is possible.
But first it would require the Data within the Excel to be formatted into a table.
Create or delete an Excel table
You could rename Excel table Name by following:
Then follow the steps in the image below:
Steps should be:
1. Add the Recurrence (Schedule) Trigger, specify the Frquency and Interval,
2. Add Excel ->Get Rows Action, specify the Excel file and the corresponding Table,
3. Add the Filter Array action, Add the Excel ->Get Rows Value content as the From input, then under condition, click advanced mode, copy and paste the following code:
@equals(formatDateTime(item()?['Date'],'yyyy/MM/dd'), utcnow('yyyy/MM/dd'))
This Assumes you have a Date Column defined in your Excel table,
4. Add the Create HTML table Action, specify the including headers option to yes,
5. Add the Send an Email action, click advanced options, specify the Is HTML option to Yes.
The running results:
Regards,
Michael
Amazing!!!!! Michael
A great explanation, it worked perfectly.
Thank you so much for everything
Regards
Is it possible to delete the rows once the FLOW has run? I created a FLOW to pass Quiz results to a SharePoint List. But there is a limit to 500 entries. Can I use FLOW delete results once they have been passed to SharePoint so I have room for new responses?
The "create html table" step was what I was missing, just logged in to thank you, @v-micsh-msft, for this answer.
I'm trying to use this template as a means to do something similar, but for some reason my flow keeps erroring out at the Filter level. In the error dialog, it appears that the filter is not picking up my "Date" column. For some reason Get Rows doesn't seem to find the Date Column. Any help would be greatly appreciated.
Thanks!
Hi Michel,
I have a smililar requirement where I have to read all the rows in the excel file (uploaded in SharePoint doc library). There is a date column and a complain id column. If the complain id column is blank, 24 hours after the date (mentioned in the date column) it will trigger a mail to the person's mail Id mentioned in the another column.
Looking forward to your resoponse.
Thanks in Advanve.
-Sahadev
Hope you can help, I have tried to follow your guidance, please see below. When I add send an email to the bottom of this for the To (email address) I get the option of create HTML table and the output or the get rows from the excel files. If I add the email address from the excel table it then adds the apply to each. I am just not sure what I am doing wrong, I assume the HTML table is holding the results filtered by the array and then should only send emails to those results, but how do I then define what is sent in the email. Sorry I am very new to flows, hope someone can help.
Is it possible to remove the columns before the the Date column?
@v-micsh-msft unfortunately I cannot follow your steps successfully due to the Get a Row issue noted in this post: https://powerusers.microsoft.com/t5/Connecting-To-Data/Error-404-Excel-Business/m-p/209444#M4383. I cannot get an array to filter from the Get a Row due to the workaround mentioned above. I need the workaround because the get a row will not accept a key value. What are my next steps? What I am I missing? How can I get a value out of Get a Row to put in the array filter?
Every day we receive an Email containing an Excel file, using Flow I am saving on my one drive for business.
Now I want to create a flow to fetch the row information into MS teams
Array Name | Raw TB | Usable TB | % Allocated | Remaining Alloc |
Sample_1 | 193 | 210 | 90% | 17 |
Sample_2 | 194 | 210 | 90% | 16 |
Sample_3 | 190 | 210 | 88% | 20 |
Whenever someone from the MS team looking for the information of Sample_2 it should be displayed.
Array Name | Raw TB | Usable TB | % Allocated | Remaining Alloc |
Sample_2 | 194 | 210 | 90% | 16 |
Can someone help me with how to create the flow?
Thank you Michael,
This was almost what I was looking for except for one more detail I need.
Because of Covid-19, lots of families lost their jobs and income thus needing feeding support. They applied for it in an excel form and now need to be redirected to institutions in their residence zone.
My table has an column regarding the Institution's Email and a Date column. I need to send all the rows from a certain Date that belong to a certain Institution everyday to their e-mail. Only one e-mail to each Institution. Would that be possible?
Thanks and regards, Joana
I tried use similar form for get 1 week before today. in my flow is necessary send one file with rows the this week, this file will send for email once day . I tried this way
addDays(utcNow(),-7,'dd-MM-YYYY') but not work, in this form
@equals(formatDateTime(item()?['Date'],'yyyy/MM/dd'), utcnow('yyyy/MM/dd'))
where I can put limit seven days ago ?
my flow
Hi @v-micsh-msft ,
Is it still possible to make an HTML table from an Excel table now that Microsoft has removed the "Get Rows" action?
Thanks!
Hi @2076192
If you have those rows into an Excel online file, there's a function called "delete rows" inside Excel functions. But, you must manage your table with keys, so once you specify the unique key it can delete the row.
I imagine that if you're trying to delete several rows you can "create" an array with those keys, and then use 'Apply to Each' when you create the 'Delete Row" function.
If you found any other solution please share it 🙂 even if this post has almost 4 years old.
Cheers.
User | Count |
---|---|
27 | |
14 | |
12 | |
9 | |
9 |
User | Count |
---|---|
50 | |
30 | |
27 | |
24 | |
20 |