function WebApplet_PreInvokeMethod (MethodName) { try { if (MethodName == "Test") { var inputPropSet; var outputPropSet; var taskUIsvc; inputPropSet = TheApplication().NewPropertySet(); outputPropSet = TheApplication().NewPropertySet(); taskUIsvc = TheApplication().GetService("Task UI Service (SWE)"); inputPropSet.SetProperty("TaskName","Create a Contact"); outputPropSet is not used to send results back to the task UI--!> taskUIsvc.InvokeMethod("LaunchTask",inputPropSet,outputPropSet); return (CancelOperation); } } catch(e) { TheApplication().RaiseErrorText("Error " + e.toString()); } finally { } return (ContinueOperation); }