Amanda
Amanda

Reputation: 23

Dynamics 365 Workflow

I have a workflow that automatically updates a contact to a specific owner that matches the linked Company owner when a contact record is created. What I want to do is to send an email when an owner changes AFTER a contact record is created. Any idea how I include this in a workflow? At the moment the e-mail is triggering when the first workflow is running which don't want.

Upvotes: 0

Views: 113

Answers (2)

Aron
Aron

Reputation: 3935

What you can do is create a separate workflow that triggers when a Contact gets assigned:

OnAssign

To suppress the email for a period of time you could create a check condition to see if the Assign workflow is running more than X minutes after the CreatedOn time (in this case 15 minutes after).

workflowCreatedOn

Upvotes: 0

BillV
BillV

Reputation: 61

Create a two-option field on the contact called "Creation Completed" or something similar, On the Assign WF put in a conditional branch:

If Creation Completed = false
  Update Creation Completed = true
Else
  Send Email

This should prevent an email being sent when the first workflow reassigns the contact.

Upvotes: 1

Related Questions