Resources for IT Professionals > Dynamics Forums > CRM Development > workflow: notification on changed attributes with previous values shown
Ask a questionAsk a question
 

Proposed Answerworkflow: notification on changed attributes with previous values shown

  • Thursday, November 05, 2009 12:43 PMxtzee Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    i am trying to create a workflow that is triggered when a any attribute changes, for example if a customer changes their account values.... any value, a notification should to send listing all the fields that have been changed as well as their previous values...

    can that be done with CRM 4.0?

    thank you in advance

    Rgrds
    Xtzee

All Replies

  • Thursday, November 05, 2009 12:52 PMNishant Rana-MCAD-MCTS-MCBMSS-MCBMSP Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    Hi,

    I don't think its possible to get the value of the attribute before it was changed in our workflows.
    You could give a try to an asynchronous plugin ? 
    There both the previous and current value would be available !


    Regards,
    Nishant Rana

    http://nishantrana.wordpress.com
    • Proposed As Answer byDavidBerry Thursday, November 05, 2009 6:46 PM
    •  
  • Thursday, November 05, 2009 8:08 PMMayankP Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I think you have to do this using Audit tools only...this article describes 3 free ways to audit data in CRM

  • Saturday, November 07, 2009 9:52 AMLeon TribeMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    The audit tools will do the job. If you want to do it in pure workflow, the only way I can think of reporting the previous value is to store it in a second attribute. You'd need two workflows. The first on the record creation would simply populate the second attribute with the current value. The second workflow would do the following:

    Record the new value from the original field
    Record the value in the second attribute
    Update the second attribute with the new value

    I haven't tested it but it should be crazy enough to work.

    Leon Tribe

    Want to hear me talk about all things CRM? Check out my blog

    http://leontribe.blogspot.com/

    or hear me tweet @leontribe
    Want to hear me talk about all things CRM? Check out my blog http://leontribe.blogspot.com/ or hear me tweet @leontribe
    • Proposed As Answer byLeon TribeMVPSaturday, November 07, 2009 9:52 AM
    •