locked
Plugins executed from bulk update of records triggering workflow causing issue RRS feed

  • Question

  • Hi Friends,

    I am having a issue ,

    We have a workflow which updated the status on demand , User selects multiple records and clicks on Run workflow to change the record status ,

    This record status will trigger a plugin to update the count on other record 

    When the plugin is being executed seperately or bulk status update of records directly the counts are getting updated correctly , but by using workflow if plugin is getting triggered the counts are not getting updated correctly.

    If some one have some suggestion that will be helpful 

    Regards,

    Kumar


    401

    Sunday, July 20, 2014 4:54 PM

All replies

  • Hi Anil,

    You are using workflow to update multiple records. Could you please check whether that workflow is async? If yes, then it might updating more than one records at a time.

    If you are using CRM 2013 then make that workflow to run synchronously and try.

    Else, you can implement locking in your plugin. Check below link for locking,

    http://www.crmsoftwareblog.com/2012/01/implementing-robust-microsoft-dynamics-crm-2011-auto-numbering-using-transactions/

    HTH!

    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"


    Monday, July 21, 2014 4:28 AM
  • HI , 

    We finally moved the workflow process to custom application to get this going that resolved our issue 


    401

    Tuesday, July 29, 2014 8:31 PM