Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Workflow to send email shows complete, but no email arrives

Posted on by Microsoft Employee

I have an entity, Change Request, that is defined as an activity. I have a workflow that has the Change Request as it's primary entity, and I have it set to start when a record is created. I have added a Send Email step and have the From field set to be dynamic (Created By) and the To field set to my email. I save it, activate it create a new change request, look in System Jobs and it shows the workflow succeeded, but I receive no email. Am I missing something?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow to send email shows complete, but no email arrives

    The user is someone who left the company and is no longer in Active Directory, so I'm guessing that is why it isn't sending, but what I can't figure out is why it is putting him as the Created By, I am creating the workflow and task on the same machine, as the same user (me), so this is really strange.

    UPDATE:

    OK, I got it to work, I changed the From field to

    {User(Created By(User))}

    and it worked. Still doesn't explain why the other way shows a different user, but at least it works now.

  • Pakvik Profile Picture
    Pakvik 10 on at
    RE: Workflow to send email shows complete, but no email arrives

    The owner of the workflow is you because you created it. If you set up the trigger as 'created by' it should send email on your behalf. Make sure you are creating a task under your CRM account. Was it a random CRM user who is disabled. Normaly you would see your user name in the From field.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow to send email shows complete, but no email arrives

    It shows the owner of the workflow being me. Not sure if this would make a difference, but the From is set to:

    {CreatedBy(Created By(User))}

    But again, I am the one creating the task.

  • matthew.mickas Profile Picture
    matthew.mickas 505 on at
    RE: Workflow to send email shows complete, but no email arrives

    Who is the owner of the workflow?  Does that happen to be the disabled user?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow to send email shows complete, but no email arrives

    OK, this is strange. I looked in All emails as you said, and the user in the From field is a disabled user, but I am the one that created the task. So the reason it isn't going is because the user is no longer employed here, but why does it not see that I am the one creating the task?

  • Pakvik Profile Picture
    Pakvik 10 on at
    RE: Workflow to send email shows complete, but no email arrives

    If you open your workflow from your system jobs and take a look at the email (which is supposed to be sent out), you would probably see the warning message saying that 'message is not yet submitted for delivery' or something like that. It could be 2 reasons (as far as I know) first is you need to check if the check-box is marked 'Allow other MS CRM users to send emails on your behalf' by going to Outlook/CRM/Options/Email tab. If it's not the case it could be also an issue with email router.

  • Suggested answer
    matthew.mickas Profile Picture
    matthew.mickas 505 on at
    RE: Workflow to send email shows complete, but no email arrives

    Check to see if the email exists by looking under activities and clicking on all emails.  The email may be stuck as "Pending Send".  This could be for a number of reasons.  When a a workflow is run it will run as the user of the owner.  If the owner is a system administrator account, make sure that account has a valid email and is setup to utilize the email router for outbound emails (user settings).  Also make sure that the user has an approved email address.

    If the owner of the workflow is a different user check the same things.  You could also turn on the email router logging as well if the email is still sitting in a status of "Pending Send".  Here is how to turn on the email router logging.  Becareful not to leave this on as it does log a decent amount of information.

    support.microsoft.com/.../2862024

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans