PwsSaveCostCardResult

Overview


This structure represents the results of a cost card insert or update. Multiple cost cards can be submitted for insert or update in a single request to PwsSaveExpenseDocument or PwsSaveExpenseDocumentCostCard. These operations 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 cost 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


PwsSaveCostCardResult

Elements


Element

Data Type

Description

Sample Data

ErrorDetail

PwsErrorDetail

The error detail regarding the failed cost card insert or save


ReferenceId

String

Reference id (used to affiliate PwsSaveCostCardResult records with associated PwsCostCardDetail records).

123

Usage Example(s)


Example 01
               <a:PwsSaveCostCardResult>
                  <a:ErrorDetail xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:ErrorCode>ExpenseTypeNotFound</b:ErrorCode>
                     <b:ErrorNumber>59912</b:ErrorNumber>
                     <b:ErrorText>Expense type not found.</b:ErrorText>
                  </a:ErrorDetail>
                  <a:ReferenceId>123</a:ReferenceId>
               </a:PwsSaveCostCardResult>