Proposed Answer Workflow fires twice

  • 24/صفر/1432 06:12 م
     
     

    Hi

    I have a plugin connected to a workflow that is activated when an attribute on a contact record is changed - unfortunately it fires twice every time. If I change the workflow to only work when manually run then it fires once as expected. Anyone also had this issue?

    Thanks

جميع الردود

  • 24/صفر/1432 10:50 م
     
     

    It depends on what your workflow rule is trying to do. If your workflow rule is updating the record, then it may well update twice.


    Ian Carter

    Click here to go to UNIT4 Business Software.

    Here are my links: Twitter Blog LinkedIn

  • 25/صفر/1432 11:57 ص
     
     

    Hi,

    Please check out your plugin too, it may possilbe that your plugin is getting called more than one and activates the workflow twise.

     

     


    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html
  • 27/صفر/1432 07:53 ص
     
     
    Well to try and debug it I have created a simple workflow that doesn't involve any plug-in that just emails me. When I attach that to the contact object and the same attribute and make sure that there's no code in the form load it still fires twice? Looks very odd...
  • 05/ربيع الأول/1432 03:01 م
    المالك
     
     
    Do you have the workflow set to fire ON Create and when the attribute changes?  if so, it will fire twice.

    Regards, Donna

  • 05/ربيع الأول/1432 03:06 م
     
     
    It's only set to Attributes change. I'm guessing that our underlying audit plug-in is the cause of it but at this stage not sure how to determine if this is the case.
  • 05/ربيع الأول/1432 03:06 م
     
     
    It's only set to Attributes change. I'm guessing that our underlying audit plug-in is the cause of it but at this stage not sure how to determine if this is the case.
  • 04/جمادى الأولى/1433 08:30 م
     
     إجابة مقترحة

    Hi,

    Similar to what Donna suggested, when you have two or more attributes set to trigger the WF, if you change two of them, then the WF is triggered twice. I hope this helps. Let me know if this was a helpful tip.


    Dynamics CRM Certified Consultant (MB2-631,632,633)

    • تم الاقتراح كإجابة بواسطة Alejandro Cesetti 04/جمادى الأولى/1433 08:30 م
    •