Monitor a Workflow/Plug-in from CRMService RRS feed

  • Question

  • Hello,


    I'm building an ASP.NET application that uses the CRMService Web service to create and update entities in CRM 4.0. The entities I'm modifying kickoff plug-ins and workflows. In my scenario I have a workflow that is triggered when a Quote record is created which calculates the freight amount and updates the quote. I want to display the freight amount to the user once the workflow is finished, how can I monitor the workflow or determine when it is complete from the CRMService Web Service?


    Thanks in advance for your help!


    Wednesday, September 10, 2008 9:16 PM


  • You can probably do this by finding the instance of the asyncoperation entity. Try using a RetrieveMultiple request on asyncoperation where the regardingobjectid is the quoteid of your new quote, and workflowactiviationid is the id of the workflow rule. Then the statecode or statuscode should give you the information you want


    Friday, September 12, 2008 9:58 PM