Click or drag to resize

WSTimeOffPolicyGetTimeOffPolicy Method

Returns a GetTimeOffPolicyOut response with a result model List<GetTimeOffPolicyModel>

Namespace: AppOne.Services.V2.Methods
Assembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax
public GetTimeOffPolicyOut GetTimeOffPolicy(
	GetTimeOffPolicyIn input
)

Parameters

input  GetTimeOffPolicyIn
A new GetTimeOffPolicyIn object

Return Value

GetTimeOffPolicyOut
A GetTimeOffPolicyOut object
Remarks
Use this method to get a results list of GetTimeOffPolicyModel

Note  Note
For a higher level overview of the business rules for labor-levels see the class WSTimeOffPolicy of this web method.

DataAction Names

NameDescriptionValues Example
SELECT-ALLReturns all time off policies in system regardless of any state.[ignored]
SELECT-IDReturns only the time off policies with the specified ID.4,8,95...
Example
JSON Request
{
    "AuthToken":"...==",
    "DataAction":{
        "Name":"SELECT-ALL",
        "Values":[""]
    }
}
JSON Response
{
    "Report": {
        "APIVersion": "2.0",
        "ProcessTime": "0.0093046",
        "RequestTime": "/Date(1496171614317-0700)/",
        "ResponseTime": "/Date(1496171614326-0700)/",
        "Results": 2
    },
    "Results": [
        {
            "DefaultTORToSecs": 3600,
            "HideAccrued": false,
            "HideGranted": false,
            "HideIncludeWeekends": false,
            "ID": 7,
            "MinTORRestrictionEnabled": true,
            "MinTORSecs": 3600,
            "Name": "AZ Policy"
        },
        {
            "DefaultTORToSecs": 0,
            "HideAccrued": false,
            "HideGranted": false,
            "HideIncludeWeekends": false,
            "ID": 8,
            "MinTORRestrictionEnabled": false,
            "MinTORSecs": 0,
            "Name": "PTO"
        }
    ]
}
See Also