So, I´ve been struggling with this particular issue, and just for the record i am just starting with Flows I really love it but this time i am starting to hate it
I have a flow that will create an HTML table and send out an email with this HTML table once certain condition matchs with a value from a Sharepoint Online list
I have created a number "status" column called ACTIVITYSTATUS from a PowerApp i am able to patch whatever value I want into this column.
From flows I have added a condition that will evaluate ACTIVITYSTATUS and depending on its current value will be sending out the email with the table. Dont know what else i can do tomake flows take the real value of the column to evaluate it. I have even tried with integers changing the column to number but it is still the same, any advice on this
Hi @RicardoC
You should trigger your flow -"when an item is modified" to make sure it runs only when a item is modified and then you can send email.
@DeepakS You were right, now I see that the flow is pulling the row with the B status, but how to make the flow to pull just the one modified instead of the whole array.
Hi @RicardoC
I created a sample flow to explain your issue:
here is my SP list with Activity Status column, with three items and each has different status:
Here is my flow very similar to yours:
Now few points to notice:
now if i look at your Html it has many empty row (as you can also see you have 19 items loop) so your condition is might not be matching for empty records,
this is how your html table looks:
As you see first two records are empty, so lets click on the next on "Apply to each" action until you reach the item 3 , you should have true condition there.
Let me know if that make sense?
-------------------------------------------------------------------------------------------------------------------------------------------
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others
This is the output from the compose that contains the HTML table
<table><thead><tr><th>act</th><th>status</th><th>ActivitySTATUS</th><th>act2</th></tr></thead><tbody><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>test input</td><td>1</td><td>b</td><td>AQUI ESTA EL Ccambio</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>Ingreso 50000</td><td>1</td><td></td><td>Ingreso 2</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>Office365</td><td></td><td></td><td>Intranet</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>PowerBI</td><td></td><td></td><td>Mas BI</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr></tbody></table>
and this is the view of the table when it comes to my email when I set the output in the FALSE condition
and this is the view of the getItems
@Jcook after adding two compose those are the outputs, on the first one it gives me a download link and it takes me to nothing the second takes me to the HTML table and it was created the way it supposed to be. Any ideas?
@DeepakS this is how I setup my flow, the table, the Activitystatus column in the condition was setup as single line of text on the Sharepoint Online List, I´ve already tried with number type but none of them seems to work
Hi @RicardoC
Could you please share your condition expression ,so i can check if that need any correction.
Regards,
WarrenBelz
146,522
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,890
Most Valuable Professional