Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This structure represents the results of a time off card insert or update. Multiple time off cards can be submitted for insert or update in a single request to PwsSaveTimeCards. This operation can partially succeed, meaning some cards were successfully saved while others triggered errors and could not be saved. The web service will report back details about each time off card, whether it succeeded or failed, by returning a collection of these structures. For failed cards, ErrorDetail will provide more details about the nature of the failure.

Format


Panel
titlePwsSaveTimeOffCardResult

...

Element

Data Type

Description

Sample Data

ErrorDetail

PwsErrorDetail

The error detail regarding the failed time card off insert or update. Null if the save was successful.


ReferenceId

String

 Reference id (used to affiliate PwsSaveTimeOffCardResult records with associated PwsTimeCardDetail records). This is especially useful when inserting new cards.


TimeOffCard

PwsTimeOffCardDetail

This structure contains the complete set of information about a the time off card.


Usage Example(s)


Code Block
languagexml
titleExample 01 - successful response
collapsetrue
            <a:TimeOffCardResults>
               <a:PwsSaveTimeOffCardResult>
                  <a:ErrorDetail i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                  <a:ReferenceId i:nil="true"/>
                  <a:TimeOffCard>
                     <ReferenceId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <TimecardId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <TimecardType xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">R</TimecardType>
                     <TimecardUid xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">1152921504608460887</TimecardUid>
                     <a:Description>Vacation Day</a:Description>
                     <a:DescriptionClearFlag>false</a:DescriptionClearFlag>
                     <a:RejectedByUser i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <a:RejectedReason i:nil="true"/>
                     <a:RejectedTimestamp i:nil="true"/>
                     <a:Status>Submitted</a:Status>
                     <a:WorkDate>2018-03-21T00:00:00Z</a:WorkDate>
                     <a:WorkMinutes>480</a:WorkMinutes>
                     <a:Timestamp>AAAAAA64QjU=</a:Timestamp>
                     <a:CardStatus>S</a:CardStatus>
                     <a:TimeOffReasonIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                        <b:TimeOffReasonId i:nil="true"/>
                        <b:TimeOffReasonName>Vacation</b:TimeOffReasonName>
                        <b:TimeOffReasonUid>1152921504606858293</b:TimeOffReasonUid>
                     </a:TimeOffReasonIdentity>
                  </a:TimeOffCard>
               </a:PwsSaveTimeOffCardResult>
            </a:TimeOffCardResults>

...