I have a flow I'm working on to send an email when a calendar event category is changed from the "Hold" category to the "Confirmed" category. When I test it, the Send an Email V2 action gets skipped.
I'm using the correct calendar ID for When an Event is Modified V3.
This goes into a condition with the expression set as "AND" and the checkboxes besides it are unchecked. The first expression is
equals(triggerOutputs()?['body/Category'], 'Confirmed') is equal to Confirmed.
The second expression is
equals(triggerOutputs()?['body/previousCategory'], 'Hold') is equal to Hold.
I then have the Send an Email V2 under the true string and nothing under the False string. I have tried putting the Send an Email V2 action outside the condition as the following step in the flow, and it then sends emails constantly whenever an event is added or modified to the two categories "Hold" and "Confirmed".
With it inside the True string, it then skips the send an email action because the condition is not met. I have tried problem solving this by adding two Compose actions under True and before the send an email action. The first for the first expression and the second for the second expression.
However this did not solve it, and both of those are being skipped as well.
The Send an Email V2 is configured correctly as it works when it's outside the condition. Can someone please inform me how to fix the condition?
Afaik Category and previousCategory are fields which don't exist and are not returned in this specific trigger action. Normally the outputs only shows an categories array field (see the first screenshot below to demonstrate). Where did you get these field names from?
Below (second screenshot) would be a way to check the current categories field for your Confirmed label.
Categories contains Confirmed
Below is the Categories field which is returned
The condition with contains
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.