Problem:
I have a flow when an existing item in Sharepoint is set to status: Deal Closed, then an email is sent. Problem is if I edit any other field in that item in the future, for example, name, start date, etc, it sends an email.
I need to make it so if the status changes to Deal Closed, then send an email, BUT check to see if the status is ALREADY Deal Closed. If the status is already Deal Closed, do nothing.
Below is my existing code.
When an existing item is modified in Sharepoint.
//Compose - status value
//Equals - @equals(triggerBody()?['Status']?['Value'],'Deal Closed')