We have a list in sharepoint which tracks quotes through the purchase. I'm trying to create a flow that emails a list of quotes that are older than 30 days. I've got the delay for 30 days (picked here from another thread) now for those that it has found to be older than 30 days how do I get it to insert the list it has found into an email?
Here's where I'm at so far. I think I need a condition placed before that Yes email. Suggestions?
Could you please share a full screenshot of your flow's configuration?
Could you please show more details about your SharePoint list?
If you want to insert a list of quotes which are older than 30 days into an email, I think the "Create HTML table" action could achieve your needs. I have created a SharePoint list on my side and the data structure of it as below:
I have made a test on my side and please take a try with the following workaround:
@lessOrEquals(formatDateTime(addDays(item()?['Created'], 30), 'MM/dd/yyyy'), utcNow('MM/dd/yyyy'))
The corresponding value of second entry set to following formula:
The corresponding value of third entry set to following formula:
Note: Use this action to select which columns of your SharePoint list to be displayed within your email. On your side, you should type the following formula to reference your SharePoint list column value:
If there is a space within your column name, please replace the space with '_x0020_' within above formula.
The flow works successfully as below:
Thanks for all of the details. I'm going to give this a go today and will post back. My regular expression skills are weak. Do you happen to know a good source for getting some training on them?
Well I gave it a try and generated a 100 emails instead of 1. (sigh) The problem I have is that as soon as I add my column to the Select table helpful Flow automatically stuffs it into a For Each container. Here's what I've got and a sample of the list I'm working with.
In the end I want the HTML output in the email to have just the Customer and Invoice # fields in it. And only those where the Settled column is No and the date created was more than 30 days ago.
Fill out a quick form to claim your user group badge now!
We've given our badges an overhaul and also added some brand new ones!
Learn how to build the business apps that you need.
Find out where you can attend!
Watch & learn from the Power Automate Community Video Gallery!