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)

Workflow - Check Old Value, Check New Value, then Send Email

(0) ShareShare
ReportReport
Posted on by

Hi all,

I am trying to run a workflow when a custom entity record's stage changes from 2 to 3. At that point, it will send an email to our PPM admins to create a project.

Currently, I have a web resource, which when the BPF stage changes, it triggers a read only field "Stage" to change (so they can sort by stage in a view). 

To execute this workflow correctly, I need to check that the previous stage was 2, check the current stage is 3, and fire an email... but I'm not sure how to check old value, and then new value, like the audit logs show.

Thanks,

Blayze

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Aiden Kaskela Profile Picture
    19,696 on at

    Hi Blayze,

    I'm not sure if you can do this with the tools out of the box (you may be able to but I don't use workflows as much as custom code).

    If I had that requirement I would do it in the plugins on the Pre / Update event where you can get the last value and the current one. You can create a new field called Last Stage and reference that in your workflow.

    If this helps, I'd appreciate if you would mark this as a Verified answer.

    Thanks,

     Aiden

  • Verified answer
    Fubar Profile Picture
    2,761 on at

    If using CRM 2013/15 you could possibly use 2 real-time workflows (one running on Before and the other After) similar to how the name change is captured in the following http://survivingcrm.com/2014/09/time-travel-workflows-accessing-before-after-values/

  • Community Member Profile Picture
    on at

    I executed it this way as it did not require code. Works very well. Thanks.

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