Overview
This service is used to retrieve a list of time alerts (PwsTimeAlerts) for the resource. Alerts are generated for weeks containing rejected or incomplete time cards, draft time cards and missing time. This service can operate in two modes:
- Return list of alerts. This returns identifying information about each alert, including the alert type as well as the week start date and total number of minutes to which the alert applies.
- Return alert count only. This returns a simple count of the number of alerts for the resource.
Request Format
- PwsGetTimeAlerts
- serviceRequest: PwsGetTimeAlertsRq
- RequestId: Int32
- SessionTicket: String
- CountOnly: Boolean
- IncludeDraftFlag: Boolean
- IncludeMissingTimeFlag: Boolean
- IncludeRejectedOrIncompleteFlag: Boolean
- MinAlertsDate: DateTime
- ResourceIdentity: PwsResourceRef
- AlertsPeriodType: String
- MissingTimeCalculateDailyFlag: Boolean
- serviceRequest: PwsGetTimeAlertsRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 | No |
| Click here for more information. | 1 |
SessionTicket | String | Yes |
| Click here for more information. | ARgBFuS/0LDcPCTXeih6XQ== |
CountOnly | Boolean | No | false | If set to 'true', the web service will include only a count of time alerts. If set to 'false", the web service will return full details of the time alerts. | false |
IncludeDraftFlag | Boolean | One of IncludeDraftFlag, IncludeMissingTimeFlag, and/or IncludeRejectedOrIncompleteFlag is required | false | If set to 'true', the web service will return draft time alerts | true |
IncludeMissingTimeFlag | Boolean | See InlcudeDraftFlag | false | If set to 'true', the web service will return missing time alerts | true |
IncludeRejectedOrIncompleteFlag | Boolean | See IncludeDraftFlag | false | If set to 'true', the web service will return rejected or incomplete time alerts | true |
MinAlertsDate | DateTime | *** deprecated *** | *** deprecated *** | *** This field has been deprecated *** |
|
ResourceIdentity | Yes |
| The identity of the resource associated with the time alerts |
| |
AlertsPeriodType | String |
|
| The alerts period type, valid values include: "D" for day "W" for week "M" for month "A" for accounting period | M |
MissingTimeCalculateDailyFlag | Boolean |
| false | If set to 'true', the web service will calculate the daily missing time | false |
Request Usage Example(s)
Response Format
- PwsGetTimeAlertsResponse
- PwsGetTimeAlertsResult: PwsGetTimeAlertsRs
- Messages: PwsMessage
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- TimeAlerts: PwsTimeAlerts
- PwsGetTimeAlertsResult: PwsGetTimeAlertsRs
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | Click here for more information |
| |
ResponseId | Int32 | Click here for more information | 1 |
Status | Click here for more information |
| |
ServerTimestampUtc | DateTime | Click here for more information | 2018-03-12T17:31:31.6073673Z |
TimeAlerts | The full details of the time alerts |
|
Response Usage Example(s)
PwsGetTimeAlerts - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
10103 | NothingToDo | There is nothing to do. |
20065 | InvalidValueForAlertsPeriodType | Specified value for alerts period type is invalid. Valid values are D for day, W for week, M for month and A for accounting period. |
57545 | ResourceNotFound | The specified resource does not exist. |