Click or drag to resize

GetPunchPromptsInDataAction 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 GetPunchPrompts(GetPunchPromptsIn) 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-EMPIDReturns only the users with the specified employee ID passed in the values property."abc-123","123","efg"...
Example
JSON Request
//EXAMPLE: Get the selected users Punch Prompts
{
    "AuthToken":"...",
    "DataAction":{
        "Name":"SELECT-EMPID",   
        "Values":["EMP01"]
    }
    "PunchTypeID":2
}
JSON Response
//EXAMPLE: Response for two requested users
{
    "Report": {
        "ProcessTime": "0.2025195",
        "RequestTime": "/Date(1430773866067-0700)/",
        "ResponseTime": "/Date(1430773866269-0700)/",
        "Results": 2
    },
    "Results": [
       {
            "UserID": 22,
            "EmployeeIdentifier": "EMP 01",
            "PunchPrompts": [
                {
                    "PunchPromptQuestionID": 3,
                    "QuestionText": "TextBox",
                    "AnswerFieldType": 0,
                    "HasDefinedAnswers": true,
                    "DefinedAnswers": [
                        {
                            "AnswerData": "Bangalore",
                            "OrdinalPosition": 1,
                            "PunchPromptDefinedAnswerID": 1,
                        },
                        {
                            "AnswerData": "Mysore",
                            "OrdinalPosition": 2,
                            "PunchPromptDefinedAnswerID": 2,
                        }
                    ],
                    "OrdinalPosition": 1,
                    "IsRequired": true,
                    "PromptOnClockIn": false,
                    "PromptOnBeginBreak": true,
                    "PromptOnEndBreak": true,
                    "PromptOnTransfer": true,
                    "PromptOnBeginMeal": true,
                    "PromptOnEndMeal": true,
                    "PromptOnClockOut": true
                },
                {
                    "PunchPromptQuestionID": 4,
                    "QuestionText": "Number",
                    "AnswerFieldType": 2,
                    "HasDefinedAnswers": false,
                    "DefinedAnswers": [],
                    "OrdinalPosition": 2,
                    "IsRequired": true,
                    "PromptOnClockIn": true,
                    "PromptOnBeginBreak": true,
                    "PromptOnEndBreak": true,
                    "PromptOnTransfer": true,
                    "PromptOnBeginMeal": true,
                    "PromptOnEndMeal": true,
                    "PromptOnClockOut": true
                },
                {
                    "PunchPromptQuestionID": 2,
                    "QuestionText": "Date",
                    "AnswerFieldType": 1,
                    "HasDefinedAnswers": false,
                    "DefinedAnswers": [],
                    "OrdinalPosition": 3,
                    "IsRequired": true,
                    "PromptOnClockIn": true,
                    "PromptOnBeginBreak": true,
                    "PromptOnEndBreak": true,
                    "PromptOnTransfer": true,
                    "PromptOnBeginMeal": true,
                    "PromptOnEndMeal": true,
                    "PromptOnClockOut": true
                }
            ]
        }
    ]
}
See Also