PwsSaveEstimateResult

Overview


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

Format


PwsSaveEstimateResult

Elements


Element

Data Type

Description

Sample Data

ErrorDetail

PwsErrorDetail

The error detail regarding a failed estimate update.


Estimates

PwsProjectTaskRoleRemaining []

The details of the estimate update.


ReferenceId

String

Reference id (used to affiliate PwsSaveEstimateResult records with associated PwsEstimate records).

E11

Usage Example(s)


Example 01 - successful response
             <a:PwsSaveEstimateResult>
                  <a:ErrorDetail i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                  <a:Estimates>
                     <a:PwsProjectTaskRoleRemaining>
                        <a:CompletedFlag>false</a:CompletedFlag>
                        <a:RemainingAsOfDate>2018-03-09T00:00:00Z</a:RemainingAsOfDate>
                        <a:RemainingMinutes>360</a:RemainingMinutes>
                     </a:PwsProjectTaskRoleRemaining>
                  </a:Estimates>
                  <a:ReferenceId>E11</a:ReferenceId>
               </a:PwsSaveEstimateResult>
Example 02 - unsuccessful response
           <a:EstimateResults>
               <a:PwsSaveEstimateResult>
                  <a:ErrorDetail xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:ErrorCode>RoleNotOnSameProject</b:ErrorCode>
                     <b:ErrorNumber>54700</b:ErrorNumber>
                     <b:ErrorText>A role was specified that does not belong to the specified project.</b:ErrorText>
                  </a:ErrorDetail>
                  <a:Estimates i:nil="true"/>
                  <a:ReferenceId i:nil="true"/>
               </a:PwsSaveEstimateResult>
            </a:EstimateResults>