I want to direct the flow depending on if there is an attachment or not. For the life of me I have not been able to get the condition to work. This is my setting (image below).
I have tried HasAttachment is equal to fx true (like in the image), true, 'true', True, 'True',
I have tried HasAttachment is not null, is not false, and
I've read every post I can find on the subject.
This is the result
As you can see there is an attachment, yet the expression result is false.. I have wasted a day on this, researching and trying everything. What I did find is that the "older" condition builder gives more reliable results (when I was also trying to filter on PDF attachments). The newer version is a waste of time. The results is always false, regardless. If I remove the filter, the flow works.
Please what am I doing wrong?
This is the entire flow
Solved! Go to Solution.
What I can see is that there is an unexpected character "{ ", at least when add such output from the 'dynamic content menu'
I also had problems with this output in the past, so I tend to eveluate presence/absence of attachments by means of this second approach:
Hope this helps
Proud to be a Flownaut!
What I can see is that there is an unexpected character "{ ", at least when add such output from the 'dynamic content menu'
I also had problems with this output in the past, so I tend to eveluate presence/absence of attachments by means of this second approach:
Hope this helps
Proud to be a Flownaut!
I am indebted to you. The curly bracket was the problem. I didn't put it there, I would never have thought to: the system did when I added it from dynamic content menu. I was able to remove it because I was using a template that used the "old" filter format which allows the Edit in Advanced Mode.
Thank you!
Hi!
Glad to help! I also got into trouble sometimes because old templates, or old posts. Since Power Automate evolves for better, we have to accept this little risk.
my humble suggestion is to mark this topic as "Solved" by clicking "Accept as a solution". THis way others facing a similar problem can find a solution faster.
Thanx for making this community great!
Proud to be a Flownaut!