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?
User | Count |
---|---|
34 | |
21 | |
17 | |
14 | |
11 |
User | Count |
---|---|
26 | |
20 | |
19 | |
14 | |
13 |