Context: this flow called “Email to Case Responsibles” aim to send an email notification. However sometimes it does not find the user, and actions get skipped, and the flow result is “Sucessfull” making it impossible to detect errors. I added an action that goes after the “Applyto each” that only runs if it was skipped, to post a message in teams letting me know the flow actually FAILED (previous action returned no output and thus skips subsequent steps.
However I am encountering a bug on the action triggered when previous step is skipped since it also skips this action!
The action in the red box should run (since the apply to each was skipped) and instead it is getting skipped too.
I tried with Condition leg(outputs(‘Buscar Analista’) less than 1
This is not a solution because when applying a formula to the output, when you have null output, it gets skipped too. Also it fails in a most annoying way since it creates another Apply to each loop.
I also tried Compose variable to make it plain text before getting to the conditions and did not work either.
Also tried the “Filter Array” action and the “Select” action but both failed for the same reason above.