Click or drag to resize

GetTimeOffPolicyDetailRuleInDataAction 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 GetTimeOffPolicyDetailRule(GetTimeOffPolicyDetailRuleIn) 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-TOPD-ID Returns only the time off policy details rules for the specified ID.
To get a list of Time Off Policy Details IDs (TOPD-ID) values see GetTimeOffPolicyDetail(GetTimeOffPolicyDetailIn)
4,8,95...
Example
JSON Request
{
    "AuthToken":"...==",
    "DataAction":{
        "Name":"SELECT-TOPD-ID",
        "Values":["3"]
    }
}
JSON Response
{
   "Report":    {
      "APIVersion": "2.0",
      "ProcessTime": "0.0438573",
      "RequestTime": "/Date(1500504050192-0700)/",
      "ResponseTime": "/Date(1500504050236-0700)/",
      "Results": 2
   },
   "Results":    [
            {
         "AccrualCap": 0,
         "FromMonth": 0,
         "HoursToAccrue": 0,
         "HoursToAccrueType": 0,
         "ID": 1,
         "MaxCarryOverSecs": 0,
         "NegativeMaxSecs": 0,
         "StopAccrualAtCap": false,
         "TimeOffPolicyDetailID": 1,
         "ToMonth": 11,
         "TransferOverageAllowed": false,
         "TransferOverageFactor": 0,
         "TransferRolloverAllowed": false,
         "TransferRolloverFactor": 0,
         "TransferRolloverMaxLimit": 0
      },
            {
         "AccrualCap": 56,
         "FromMonth": 12,
         "HoursToAccrue": 522,
         "HoursToAccrueType": 1,
         "ID": 2,
         "MaxCarryOverSecs": 454,
         "NegativeMaxSecs": 545,
         "StopAccrualAtCap": false,
         "TimeOffPolicyDetailID": 1,
         "ToMonth": 9999,
         "TransferOverageAllowed": false,
         "TransferOverageFactor": 0,
         "TransferRolloverAllowed": false,
         "TransferRolloverFactor": 0,
         "TransferRolloverMaxLimit": 0
      }
   ]
}
See Also