...
This structure represents the results of the PwsSaveResourceAvailableTimeOff service when the service failsan available time off insert or update. Multiple available time off entries can be submitted for insert or update in a single request to PwsSaveResourceAvailableTimeOff. This operation can partially succeed, meaning some records were successfully saved while others triggered errors and could not be saved. The web service will report back details about each failed record by returning a collection of these structures. ErrorDetail will provide more details about the nature of the failure.
Format
Panel | ||
---|---|---|
| ||
|
Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
AsOfDate | DateTime | Start of time off period. | 2018-01-01T00:00:00Z |
ErrorDetail | The details of the error returned by PwsSaveResourceAvailableTimeOff |
. | ||
ResourceIdentity | The resource identity supplied in the request. |
TimeOffReasonIdentity | The time off identity supplied in the request |
. |
Usage Example(s)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<b:PwsSaveResourceAvailableTimeOffResult> <b:AsOfDate>2018-01-01T00:00:00Z</b:AsOfDate> <b:ErrorDetail xmlns:c="http://projectorpsa.com/DataContracts/Shared/Common/"> <c:ErrorCode>SpecifiedTimeOffReasonDoesNotExist</c:ErrorCode> <c:ErrorNumber>57567</c:ErrorNumber> <c:ErrorText>The specified time off reason does not exist.</c:ErrorText> </b:ErrorDetail> <b:ResourceIdentity xmlns:c="http://projectorpsa.com/DataContracts/Shared/Common/"> <c:ResourceDisplayName i:nil="true"/> <c:ResourceId i:nil="true"/> <c:ResourceReferenceSystemId>E123</c:ResourceReferenceSystemId> <c:ResourceUid i:nil="true"/> </b:ResourceIdentity> <b:TimeOffReasonIdentity xmlns:c="http://projectorpsa.com/DataContracts/Shared/Common/"> <c:TimeOffReasonId i:nil="true"/> <c:TimeOffReasonName>Summer Vacation</c:TimeOffReasonName> <c:TimeOffReasonUid i:nil="true"/> </b:TimeOffReasonIdentity> </b:PwsSaveResourceAvailableTimeOffResult> |