Create record using JScript This sample shows how to use the CrmService.Create method using the same example provided in the Server Programming Guide: CrmService.Create method. To test this sample: Paste the following code into any Event Detail Properties dialog box. Save the form and then click Create Form on the Preview menu. When the event [...]
Posts Tagged ‘JavaScript’
CrmService.Create Method Using JScript
Posted: September 2, 2010 in JScript, Microsoft Dynamics CRMTags: Create Record using Jscript, CrmService, JavaScript
0
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>” + [...]

