Trying to use a trigger condition against a "yes/no" column in the SharePoint list that triggers the Flow.
Maybe missing something in syntax, so any help would be appreciated. The error I'm getting when testing the trigger isn't very helpful.
Trigger condition used
Error on test run
Solved! Go to Solution.
So I did some more testing myself. The actual problem was that the 'Yes/No' column was actually never initialised. It had a default setting but that never actually executes if that makes any sense. When I went in and updated the checkbox and saved the record again the trigger did work as expected. Could also have been a result of the list being migrated from SP2010 to SharePoint Online recently.
By the way it doesn't seem to matter in this scenario if you use a capital or not. So both true and True work fine.
Thanks again for your help.
Hi @AndreSchlender,
It works well on my side that adds a condition into the trigger @equals(triggerBody()?['Completed'],true).
Could you confirm the Completed column really has existed in the SharePoint list? The error shows the property undefined, I assume the column has been changed name. You can have a test that without ant condition in the trigger, then create an item to check the column name.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the quick reply. I did think of that and the original name for this column is actually "Completed". However it has since been changed to "Job done". I tested the expression with the new name as well and get the same error. I tested without condition to just retrieve the value of the columns and this worked ok. The returned value in this case is true, so still not clearer why the trigger condition errors out.
Andre
So I did some more testing myself. The actual problem was that the 'Yes/No' column was actually never initialised. It had a default setting but that never actually executes if that makes any sense. When I went in and updated the checkbox and saved the record again the trigger did work as expected. Could also have been a result of the list being migrated from SP2010 to SharePoint Online recently.
By the way it doesn't seem to matter in this scenario if you use a capital or not. So both true and True work fine.
Thanks again for your help.
User | Count |
---|---|
94 | |
46 | |
21 | |
19 | |
18 |
User | Count |
---|---|
137 | |
54 | |
42 | |
41 | |
30 |