Forum Discussion
Copilot agent sending emails to incomplete tasks
Hi Folks, I am new to this forum but want to share an interesting thing which I did with my first copilot agent.
I have built an agent which can read incomplete number of "time-reported hours" from timesheet report and send individual emails to all those with "missing hours" in the body of email. This acts as a reminder for all the folks who missed filling their timesheets.
The agent has worked well so far.
1 Reply
Hi, I’d put a very explicit condition right before the email action so the message only sends when the task status is complete and all required fields are present. In Copilot Studio flows, it is easy for an earlier step to return a partial or empty value and still let the next action run. I’d also log or temporarily output the values being passed into the email step so you can confirm whether the status is coming through as expected. If there is any approval or human review step, I’d make the email depend on that final approved/completed state rather than the original task trigger.