Overview
This web service retrieves a resource's available time off minutes. The caller can execute the web service for a specific resource identity (PwsResourceRef) and/or time off reason identity (PwsTimeOffReasonRef). The combinations include:
- ResourceIdentity and TimeOffReasonIdentity specified = The available time off for the specified resource and time off reason will be returned (note: the authenticated user must have permission to view the specified resource's available time off)
- ResourceIdentity specified, TimeOffReasonIdentity is not specified = The available time off for the specified resource and all time off reasons will be returned (note: the authenticated user must have permission to view the specified resource's available time off)
- ResourceIdentity is not specified, TimeOffReasonIdentity is specified = The available time off for all resources and the specified time off reason will be returned (note: the authenticated user must have permission to view one or more resource's available time off)
- ResourceIdentity is not specified, TimeOffReasonIdentity is not specified = The available time off for all resources and all time off reasons will be returned (note: the authenticated user must have permission to view one or more resource's available time off)
Request Format
- PwsGetResourceAvailableTimeOff
- serviceRequest: PwsGetResourceAvailableTimeOffRq
- RequestId: Int32
- SessionTicket: String
- EndDate: DateTime
- ResourceIdentity: PwsResourceRef
- StartDate: DateTime
- TimeOffReasonIdentity: PwsTimeOffReasonRef
- serviceRequest: PwsGetResourceAvailableTimeOffRq
Request Elements
Element | Data Type | Required? | Description | Sample Data |
---|---|---|---|---|
RequestId | Int32 | No | Click here for more information. | 1 |
SessionTicket | String | Yes | Click here for more information. | ASIpnfWeYNJkYt6nFvepDA== |
EndDate | DateTime | No | The EndDate and the StartDate defines the period in which the time off hours should reside in |
|
ResourceIdentity | No | The identity of the resource |
| |
StartDate | DateTime | No | See EndDate |
|
TimeOffReasonIdentity | No | The identity of the time off reason |
|
Request Usage Example(s)
Response Format
- PwsGetResourceAvailableTimeOffResponse
- PwsGetResourceAvailableTimeOffResult: PwsGetResourceAvailableTimeOffRs
- Messages: PwsMessage
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- ResourceAvailableTimeOffSchedule: PwsResourceAvailableTimeOffElement [???]
- PwsGetResourceAvailableTimeOffResult: PwsGetResourceAvailableTimeOffRs
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | The web service response status and message. Click here for more information. |
| |
ResponseId | Int32 | Click here for more information. |
|
Status | Click here for more information. |
| |
ServerTimestampUtc | DateTime | Click here for more information. |
|
ResourceAvailableTimeOffSchedule | The resource available time off schedule |
|
Response Usage Example(s)
PwsGetResourceAvailableTimeOff - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|