Click or drag to resize

GetTimeOffPolicyInDataAction Property

A simple query abstraction layer used to provide a mechanism by which methods can make simple query calls to various models.
* Required Property

Namespace: AppOne.Services.V2.Contracts
Assembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax
public DataAction DataAction { get; set; }

Property Value

DataAction
Remarks
The DataAction property is required to get results from GetTimeOffPolicy(GetTimeOffPolicyIn) method. Below is a list of the available DataAction name values that can used to return a dynamic results set

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