web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)
Answered

How to change owner (sender of email) when a workflow is triggered.

(0) ShareShare
ReportReport
Posted on by 205

I also posted this to the D365 section, but then realized this is the section it should've been placed it, so apologies for the double post. 

Hello -

I've got an issue with an email template sent via a workflow to prospective leads.  Our users are sending the template but on the other end it shows as from our administrator account instead of the owner of the lead record.
We've got two separate processes for accomplishing this:

1. We've created an on demand workflow in CRM Online and it works just fine.  We were able to edit the ribbon to put a button that triggers the workflow without having to go through the process of creating an email.  Works great!

2.  Our users wanted a way to send this template from a mobile device when they are out and about.  Since the mobile app doesn't allow for workflows (as far as I know) I created a new option field (Yes/No) in the lead entity and placed it on the quick create form.  Then set up a workflow on the lead entity so that when a new record is created and  if the field is checked "Yes" it sends the email template.

The problem we're having is that with method #2.  The workflow gets triggered and completes.  Unfortunatly the email that is sent is coming from the administrator account instead of the owner of the lead.
Any ideas on how to fix that?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ashlega Profile Picture
    34,477 on at

    Hi,

     try converting that workflow to a real-time workflow. You can set up a real-time workflow to run in the context of the user making the changes (on the workflow configuration screen) instead of the workflow owner(that's the only option you have with the background workflows)

  • Verified answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi,

    As suggested by Alex, you could try writing a real-time workflow which can run in the security context of the logged on user or owner of the workflow. However, workflows set to run on-demand always run under the security context of the logged on user.

    See: msdn.microsoft.com/.../dn481598.aspx

    Hope this helps.

  • clw Profile Picture
    205 on at

    Thank you both for your help!  That did the trick and now the workflow is working as intended.

    Best regards,

    Chris

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans