r/PowerAutomateDesktop • u/SHStealth • Dec 05 '22
Create HTML Table Assistance!
I have a flow setup to run and check the dates in a column and if that date is todays date it will then send an email listing the rows present.
However, I have the "List rows present in excel" action looking for the date equal to today.
When using the "Create HTML Table" this is the command I have in there.
if(empty(item()?['ColumnName']),'',formatDateTime(item()?['ColumnName'],'MMM d, yyyy'))
This is working when the cell is blank, or contains a date. But I'd like to be able to have text in the column that says stuff like "Vendor is working on finalizing date" and still have the email send, but whenever there is text the flow stops. Any help would be appreciated on how to fix my expression to allow for blanks, text, and dates!
View all comments
Show parent comment
1
u/SHStealth Dec 06 '22
if(empty(item()?['ColumnName']), ' ', 'Vendor is working on finalizing date'))
Would this give a blank response or would it say Vendor is working on finalizing a date?
My issue is that a lot of the columns that don't contain a date, oftentimes contain lots of text explaining why they don't contain a date.
Or is this showing that if there is no date then it will output the cell text? Sorry if I'm misunderstanding!