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> ValueValueValueDescriptionError Insufficient privileges 34001 See Input Specifications for Add andDelete Task Methods for session idprivilege criteria.AddTaskEx MethodUsageUsed to programmatically add a dependent task on an existing event for anexisting employee and opting to add the task as either an unassociated task or adependent task.If the added task is a dependent task in the workflow, and the parent task iscurrently an incomplete task, and the parent task is NOT defined as “AlwaysReopen Dependent Tasks”, you must use the AddTaskEx method instead of theAddTask method.Both the AddTask and AddTaskEx methods can handle adding dependent tasks ifthe parent task is defined as “Always Reopen Dependent Tasks”.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.AddTaskEx(sessionnum,strForWhomUser, “Transfer”,“Transfer_Task1”, “true”, “true”);if (ret.errornum != 1){console.out.writeline("error while adding task" + " error:" + ret.data);return;}ParametersstrSecurityTokenRequired.Valid Session ID for consuming service (seeprivilege specifications in the InputSpecifications for Add and Delete TaskMethods section).simple stringUser Import and Edit 59

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

Saved successfully!

Ooh no, something went wrong!