Click or drag to resize

ServiceRouterDeleteUserLaborLevel Method

Deletes a list of assigned user labor levels by its IDList and returns a list of DeleteResult status structures

Namespace: AppOne.Services.V2
Assembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax
public DeleteUserLaborLevelOut DeleteUserLaborLevel(
	DeleteUserLaborLevelIn input
)

Parameters

input  DeleteUserLaborLevelIn
A new DeleteUserLaborLevelIn object

Return Value

DeleteUserLaborLevelOut
A list of DeleteResult status structures
Remarks
Deletes a list of assigned user labor levels by its IDList and returns a list of DeleteResult status structures
The structures give a status for each of the IDList passed in. See notes below for source of IDList.

Note  Note
The IDList requires the value from the AssignID property from the GetUserLaborLevel(GetUserLaborLevelIn) call.
Caution note  Caution
This call will completely remove the user labor level assignment. In some cases this might not be the desired behavior. Be sure to test this call against a test system to be sure the results are as desired for this call. If you want to change the Start and End dates of the assignment then use the Add and Update calls.
Example
JSON Request
{
    "AuthToken":${#TestSuite#Tests_Global_Token},
    "EmpIdentifier": "1234",
    "IDList":[4546,4541]
}
JSON Response
{
   "Report":    {
      "APIVersion": "2.0",
      "ProcessTime": "0.1141386",
      "RequestTime": "/Date(1540236322694-0700)/",
      "ResponseTime": "/Date(1540236322809-0700)/",
      "Results": 2
   },
   "Results":    [
       {
         "ID": 4546,
         "IsDeleted": false,
         "Message": "FAIL: User labor level assignment ID not found: 4546",
         "Status": 2
      },
      {
         "ID": 4541,
         "IsDeleted": true,
         "Message": "PASS: User labor level assigment successfully deleted",
         "Status": 1
      }
   ]
}
See Also