If you want to send an e-mail to the owner(s) of a record, so to the owning user or the users of the owning team (and you don’t want to use a queue), this can be done with a simple CDS worklow based on custom workflow activities from the Dynamics-365-Workflow-Tools, created by Demian Raschkovan.
If you want to include a hyperlink to the record in your e-mail message the ‘Get App Record Url‘ action is your friend here.
![](https://i0.wp.com/2die4it.com/wp-content/uploads/2020/07/Send-Email-notification-to-Owner-workflow.png?resize=519%2C271&ssl=1)
The next step is to Create an Email record addressed to the ‘Owning User’ of the record, in this case a Lead.
If the owner is a team, the value of ‘Owning User’ will be empty.
![](https://i0.wp.com/2die4it.com/wp-content/uploads/2020/07/Send-Email-to-Owning-User.png?resize=810%2C272&ssl=1)
Then we do a check if the ‘Owning Team’ contains data, in case the owner is a team. If so, then the users (members) of the team will be populated in the ‘To:’ field by the ‘Email to Team‘ action.
![](https://i0.wp.com/2die4it.com/wp-content/uploads/2020/07/Send-Email-to-User-of-Team.png?resize=794%2C216&ssl=1)
The last step is to send the created e-mail message to the addressed user(s).
One comment