Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : URC4csJYE1kGrYbhQbRyIK
Microsoft Dynamics CRM (Archived)

How do I create a Workflow that will email the previous owner if an account is re-assigned to someone else?

Like (0) ShareShare
ReportReport
Posted on 6 Jul 2017 16:39:35 by

Hi everyone,

I am new to Dynamics and CRM and trying to wrap my head around workflows. (Just started).

I watched a couple really good videos that are helping me out a ton, but I'm still a little lost on the specifics of what I want to do.

So what I want to do is create a workflow that will make it so when someone has an account and that account is re-assigned to someone else, the owner of that account gets notified that it has been assigned to someone else. An email notification looks like the easiest. So say James has an account but that account gets re-assigned to someone else, I want James to be able to get an email stating that the account has been re-assigned. So if an account is re-assigned, how can I send an email to the previous owner?

Thanks a million,

Trev

*This post is locked for comments

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on 07 Jul 2017 at 00:46:20
    RE: How do I create a Workflow that will email the previous owner if an account is re-assigned to someone else?

    Hi,

    You can achieve this by creating a workflow which send an email to the owner (Previous).

    For this, you need to trigger the workflow before the record is assigned.  Check below-

    5444.Workflow2.jpg5444.Workflow2.jpg

    Cause this workflow will be triggered before the assignment, you wont be able to get the new owner. However you can create similar workflow but that you trigger after the assignment.

    Hope this helps.

    Thanks,

    Ravi Kashyap

  • Suggested answer
    Drew Poggemann Profile Picture
    4 on 06 Jul 2017 at 23:34:36
    RE: How do I create a Workflow that will email the previous owner if an account is re-assigned to someone else?

    Hi TrevorAPI,

    I have a thought here for you... You could create another field on the Account which would be defined as "previousOwner".  This field would be triggered by a change in the Owner field in a standard workflow.  

    1.  Triggers for workflow would be when record created and when the Owner field on the record changes

    2.  When the record is created, the previous owner would be null do an If is blank in this field and set to Owner

    3.  When the Owner changes then step in the workflow would look to see if the values are different and if so then you would create an email and send to the "previousOwner" that the record has been updated.

    4.  Next step in the workflow would set the "previousOwner" to the current owner of the record.

    I think this would accomplish what you need.  Sorry I did not try it but let me know if any problems :)

    Thanks!

  • Suggested answer
    Aiden Kaskela Profile Picture
    19,694 on 06 Jul 2017 at 20:17:06
    RE: How do I create a Workflow that will email the previous owner if an account is re-assigned to someone else?

    Hi Trevor,

    Unfortunately you won't be able to accomplish that through workflows without some custom code. The problem is getting the previous owner as a lookup. If you could write C#, you're write you code o update of the record and check if the owner changes, and pull the old owner from the PreImage. Using just the workflow activities, you can get the audit details in a table form with Workflow Elements (KaskelaSolutions.com) but you wouldn't be able to get the specific old owner back.

    Hope this helps! I'd appreciate if you'd mark this as Answering your question.

    Thanks,

     Aiden

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,435 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,567 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete