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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>RedCarpet</strong>If one or more parameters are in error, the ErrorNum returns a value not equalto 1. The XML in the Data string will describe the errors. The error text in thedata string and error codes are described in the “Method Returns” section ofeach method description.AddTask MethodUsageUsed to programmatically add a task on an existing event for an existingemployee.Code examplesTo add 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.AddTask(sessionnum,strForWhomUser, “Transfer”,“Transfer_Task1”, “true”);if (ret.errornum != 1){console.out.writeline("error while adding task" + " error:" + ret.data);return;}ParametersstrSecurityTokenstrForWhomUserRequired.Valid Session ID for consuming service (seeprivilege specifications in the InputSpecifications for Add and Delete TaskMethods section).Required.The value refers to the <strong>RedCarpet</strong>employee for whom the task will be added.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 userguidsimple stringsimple stringUser Import and Edit 56

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

Saved successfully!

Ooh no, something went wrong!