none
How to check to see if workflow already ran once so it doesnt run again? RRS feed

  • Frage

  • In CRM 4, I have a workflow that is ran as an attribute is changed.  I only want this workflow to run one time, however the field may be updated several times.  I only want one workflow though.  How do I setup my workflow to include a statement that says, if this workflow name has already been ran, then stop the workflow?  This workflow updates a description field and I dont want the description to list the same text over and over again when another field is updated?  Thanks!

    Montag, 22. Februar 2010 19:10

Antworten

  • Hi,

    a simple way would be to add another attribute to the entity called "description updated". By the default this attribute should be false.
    You modify your workflow rule: Only proceed if "description updated" = false.
    And add another step to your worflow: Set "description updated" to true, when the workflow runs the first time.

    Hope this helps....

    Nils
    Montag, 22. Februar 2010 20:55
  • Hi,

    you can post your english crm questions here: http://social.msdn.microsoft.com/Forums/en-US/crm/threads

    Best regards,
    Jürgen


    Jürgen Beck

    Dipl. Kfm./Wirtschaftsinformatik
    MVP, MCSD.NET, MCITP DBA, MCDBA, MCSE
    Microsoft Certified Business Management Solutions Professional
    Microsoft Certified CRM Developer
    Microsoft Certified Trainer

    ComBeck IT Services & Business Solutions
    Microsoft Gold Certified Partner
    Microsoft Small Business Specialist

    Developing & Supporting Business Applications from small business to big enterprises covering scores of sectors

    http://www.combeck.de
    Samstag, 15. Mai 2010 11:17
    Moderator

Alle Antworten

  • Hi,

    a simple way would be to add another attribute to the entity called "description updated". By the default this attribute should be false.
    You modify your workflow rule: Only proceed if "description updated" = false.
    And add another step to your worflow: Set "description updated" to true, when the workflow runs the first time.

    Hope this helps....

    Nils
    Montag, 22. Februar 2010 20:55
  • Hi,

    you can post your english crm questions here: http://social.msdn.microsoft.com/Forums/en-US/crm/threads

    Best regards,
    Jürgen


    Jürgen Beck

    Dipl. Kfm./Wirtschaftsinformatik
    MVP, MCSD.NET, MCITP DBA, MCDBA, MCSE
    Microsoft Certified Business Management Solutions Professional
    Microsoft Certified CRM Developer
    Microsoft Certified Trainer

    ComBeck IT Services & Business Solutions
    Microsoft Gold Certified Partner
    Microsoft Small Business Specialist

    Developing & Supporting Business Applications from small business to big enterprises covering scores of sectors

    http://www.combeck.de
    Samstag, 15. Mai 2010 11:17
    Moderator