PwsSaveContractLineItemMilestone
Overview
This web service inserts or updates a single contract line item milestone based on a detailed contract line item milestone structure (PwsContractLineItemMilestoneDetail). The service returns the identity (PwsContractLineItemMilestoneRef) of the contract line item milestone that has been inserted or updated.
Request Format
- PwsSaveContractLineItemMilestone
- serviceRequest: PwsSaveContractLineItemMilestoneRq
- RequestId: Int32
- SessionTicket: String
- AchievedDateClearFlag: Boolean
- ContractLineItemMilestone: PwsContractLineItemMilestoneDetail
- DescriptionClearFlag: Boolean
- EngagementCurrencyIdentity: PwsCurrencyRef
- EngagementTimestamp: String **deprecated**
- PlannedDateClearFlag: Boolean
- ProjectClearFlag: Boolean
- ProjectTaskClearFlag: Boolean
- StealLockFlag: Boolean **deprecated**
- ContractLineItemTimestamp: String
- LocksToSteal: PwsEntityLockSummary[1.100]
- ProjectorLockSetId: Int32
- serviceRequest: PwsSaveContractLineItemMilestoneRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
Int32 | No | Click here for more information. | 1 | ||
String | Yes | Click here for more information. | AdDMw48w49OxnEUPGUuMSw== | ||
AchievedDateClearFlag | Boolean | No | false | If 'true', the milestone's achieved date will be cleared. | false |
ContractLineItemMilestone | Yes | The detailed contract line item milestone information to be inserted or updated. | |||
DescriptionClearFlag | Boolean | No | false | If set to 'true', the contract line item milestone description will be set to null. | false |
EngagementCurrencyIdentity | Yes | The currency of the engagement this contract line item milestone resides under. | |||
EngagementTimestamp | String | **deprecated** | |||
PlannedDateClearFlag | Boolean | No | false | If set to 'true', the milestone planned date will be set to null. | false |
ProjectClearFlag | Boolean | No | false | If set to 'true', the project associated with the contract line item milestone will be set to null. | false |
ProjectTaskClearFlag | Boolean | No | false | If set to 'true', the project task associated with the contract line item milestone will be set to null. | false |
StealLockFlag | Boolean | **deprecated** | |||
ContractLineItemTimestamp | String | No | This is an optimistic locking timestamp that, if provided on update request, will cause the request to fail when the timestamp stored in the database does not match the provided value. | ||
LocksToSteal | PwsEntityLockSummary[1.100] | No | The detailed information of the locks that are to be stolen. If not specified, the request will fail if any requested locks are already held. If specified, the information supplied must exactly match the current state of existing locks or the attempt to steal the existing locks will fail. Typically, this service is invoked with LocksToSteal empty or null. If there are existing locks, they will be returned in the LockHolders member of PwsFault. This data can then be sent, as is, back to the server in a second invocation of this service, as LocksToSteal, if the caller desires to steal the locks. | ||
ProjectorLockSetId | Int32 | No | A projector lock set id is an identifier for a group of one or more locks held as a unit. |
Request Usage Example(s)
Response Format
- PwsSaveContractLineItemMilestoneResponse
- PwsSaveContractLineItemMilestoneResult: PwsSaveContractLineItemMilestoneRs
- Messages: PwsMessage[]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- ContractLineItemMilestoneIdentity: PwsContractLineItemMilestoneRef
- EngagementTimestamp: String **deprecated**
- LockStolenFromUserIdentity: PwsUserRef **deprecated**
- ContractLineItemTimestamp: String
- StolenLocks: PwsEntityLockSummary
- PwsSaveContractLineItemMilestoneResult: PwsSaveContractLineItemMilestoneRs
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | The web service response status and message. Click here for more information. | ||
Int32 | Click here for more information. | 1 | |
Status | Click here for more information. | Ok | |
DateTime | Click here for more information. | 2018-01-22T19:30:03.4141326Z | |
ContractLineItemMilestoneIdentity | The unique keys used to identify the contract line item milestone. | ||
EngagementTimestamp | String | **deprecated** | |
LockStolenFromUserIdentity | **deprecated** | ||
ContractLineItemTimestamp | String | This is an optimistic locking timestamp that, if provided on update request, will cause the request to fail when the timestamp stored in the database does not match the provided value. | |
StolenLocks | PwsEntityLockSummary | This structure contains information about the locks that were stolen in order to complete this request, Will be included only when LocksToSteal is specified in the request. |
Response Usage Example(s)
PwsSaveContractLineItemMilestone - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
33001 | ContractLineItemMilestoneDescriptionMayNotBeSpecifiedWhenClearFlagSet | Contract Line Item Milestone Description was specified when Clear Flag Was Set. |
33002 | ContractLineItemMilestonePlannedDateMayNotBeSpecifiedWhenClearFlagSet | Contract Line Item Milestone Planned Date was specified when Clear Flag Was Set. |
33003 | ContractLineItemMilestoneAchievedDateMayNotBeSpecifiedWhenClearFlagSet | Contract Line Item Milestone Acheived Date was specified when Clear Flag Was Set. |
54260 | ContractLineItemMilestoneNotFound | Specified contract line item milestone not found. |
54261 | ContractLineItemMilestoneRequired | A contract line item must be specified. |
54976 | CannotClearAchievedDateOnInvoicedMilestone | Achieved date may not be cleared for milestones that are on an invoice. |
54977 | CannotForegoInvoicedMilestone | Achieved milestones may not be marked as foregone. |
54978 | NoPermissionToMaintainMilestones | You do not have permission to maintain milestones. |
54979 | MilestonProjectMismatch | Specified project task does not belong to specified project. |
54981 | CannotLinkMilestoneToInternalOrOpenTask | Milestones cannot be linked to tasks that are open for time or that are parent tasks. |
54982 | CannotLinkMilestoneToTaskWithAssignedRole | Milestones cannot be linked to tasks that have roles assigned. |
54983 | ProjectTaskSpecifiedWithoutProject | Task may not be specified when no project is specified. |
54986 | ContractLineItemMilestoneNameInUse | There is already a milestone in the specified contract line item with the specified name. |
55002 | BillingMilestonesInvalidOnNonbillableEngagements | Billing milestones can only be associated with contract line items on billable engagements. |
55112 | CannotDisableDtmDueToMilestoneOrWatchedTasks | DTM cannot be disabled for this project because there are tasks that are either associated with milestones or are being watched |