Click or drag to resize

WSPayrollPayTypeDeletePayrollPayType Method

Deletes a list of payroll pay-types by its IDList and returns a list of DeleteResult status structures

Namespace: AppOne.Services.V2.Methods
Assembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax
public DeletePayrollPayTypeOut DeletePayrollPayType(
	DeletePayrollPayTypeIn input
)

Parameters

input  DeletePayrollPayTypeIn
A new DeletePayrollPayTypeIn object

Return Value

DeletePayrollPayTypeOut
A list of DeleteResult status structures
Remarks
Deletes a list of payroll pay-types by its IDList and returns a list of DeleteResult status structures.
The structures give a status for each of the IDList passed in.

Note  Note
If a GetPayrollPayTypeModel has been assigned anywhere in the system then that GetPayrollPayTypeModel can not be physically removed. The payroll paytype item is flagged as deleted in the system. This can be detected by looking for the IsDeleted property. The DeletePayrollPayType method is only set the IsDeleted flag to true it will not physically remove the value from the system. To only way to remove the value from the system is for admin to login to the system configuration interface and delete the value.
Example
JSON Request
{
    "AuthToken":"...",
    "IDList":[241, 239]
}
JSON Response
{
   "Report":    {
      "APIVersion": "2.0",
      "ProcessTime": "0.0977645",
      "RequestTime": "/Date(1523299276024-0700)/",
      "ResponseTime": "/Date(1523299276122-0700)/",
      "Results": 2
   },
   "Results":    [
            {
         "ID": 241,
         "IsDeleted": true,
         "Message": "PASS: Payroll pay-type successfully marked as deleted",
         "Status": 1
      },
            {
         "ID": 239,
         "IsDeleted": false,
         "Message": "FAIL: Unable to locate ID",
         "Status": 2
      }
   ]
}
See Also