Posts Tagged ‘Workflow’

   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 [...]

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 [...]

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>” + [...]