Hi Everyone,
I am new to power automate. I created a flow thus:
Trigger: When an item is created or modified
↓
Initialize Variable
↓
Compose (to get Status)
↓
Condition 1:
Submitted == Yes AND Status == Pending Approval AND EmailSentStatus == None
↓
If True:
↓
Send Email to Line Manager and Creator
↓
Update Item (EmailSentStatus = LineManagerEmailSent)
↓
- Delay for 5 seconds
↓
Condition 2:
LineManagerApproval == Approved AND EmailSentStatus == LineManagerEmailSent
↓
If True:
↓
Send Email to HR Manager
The first condition works fine but as the line manager approves the mail to the HR manager does not trigger. If I remove the update action, the mail will go and the then trigger again the mail to the creator and to the line manager. This off course is duplication and can cause confusion.
I really need help on this to enable me close out a task.