Both workflows and plug-ins can attach to exactly the same events. Well, plug-ins have available a couple of more events but essentially both work on top of the same event model.Remember also that workflows always run asynchronous and hence, the Asynchronous Processing Service must be running on the server in order to run. Workflows [...]
Posts Tagged ‘Workflow’
Plug-ins vs. Workflows in Microsoft Dynamics CRM
Posted: October 29, 2010 in Microsoft Dynamics CRMTags: Plug-In, Plug-Ins, Workflow
Troubleshooting Microsoft CRM Asynchronous process jobs
Posted: September 10, 2010 in Microsoft Dynamics CRM, SQLTags: Asynchronous, Asynchronous Job types, Asynchronous Jobs, Troubleshooting Asynchronous Jobs, Workflow
1. If any of the job’s status has changed from “Publishing” to “Unpublished”, most likely there are exceptions that caused the job to fail. a. Run the SQL script to understand the cause USE Microsoft_MSCRM GO SELECT Name, ErrorCode, Message, * FROM AsyncOperation WHERE OperationType = 7 ORDER BY CompletedOn DESC Message column should contain [...]
CRM 4.0: Use JavaScript execute/call/launch CRM Workflow
Posted: September 2, 2010 in JScript, Microsoft Dynamics CRMTags: JavaScript, Launch workflow through JScript, Workflow
Run a workflow through JavaScript /* the function */ ExecuteWorkflow = function(entityId, workflowId) { var xml = “” + “<?xml version=\”1.0\” encoding=\”utf-8\”?>” + “<soap:Envelope xmlns:soap=\”http://schemas.xmlsoap.org/soap/envelope/\” xmlns:xsi=\”http://www.w3.org/2001/XMLSchema-instance\” xmlns:xsd=\”http://www.w3.org/2001/XMLSchema\”>” + GenerateAuthenticationHeader() + ” <soap:Body>” + ” <Execute xmlns=\”http://schemas.microsoft.com/crm/2007/WebServices\”>” + ” <Request xsi:type=\”ExecuteWorkflowRequest\”>” + ” <EntityId>” + entityId + “</EntityId>” + ” <WorkflowId>” + workflowId + “</WorkflowId>” + [...]

