10.07.2015 Views

Web Service Guide - RedCarpet - Login - SilkRoad Technology

Web Service Guide - RedCarpet - Login - SilkRoad Technology

Web Service Guide - RedCarpet - Login - SilkRoad Technology

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>RedCarpet</strong>DeleteTask MethodUsageUsed to programmatically delete a task from an existing event for an existingemployee.Code examplesTo delete a task with a Task Definition ID of “Transfer_Task1 to an event called“Transfer” for the employee with the loginID of “Jackson.Smith” the examplesyntax is as follows:.strForWhomUser = “Jackson Smith”eprise.epsstringex ret = service.DeleteTask(sessionnum,strForWhomUser, “Transfer”,“Transfer_Task1”, “true”);if (ret.errornum != 1){console.out.writeline("error while adding task" + " error:" + ret.data);return;}ParametersstrSecurityTokenstrForWhomUserstring strEventNameRequired.Valid Session ID for consuming service (seeprivilege specifications in the InputSpecifications for Add and Delete TaskMethods section).Required.Any of the following employee profileattributes are supported: the employee<strong>Login</strong> id, a unique email address, or theprofile authparam. The strForWhomUserparameter will also accept the programgenerated userguidRequired.The event name (in the default language) orevent code as it is displayed on theAdministration -> Localization page.simple stringsimple stringsimple stringUser Import and Edit 64

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!