PwsDeleteEngagement
Overview
This web service deletes a specified engagement (PwsEngagementRef). The service will return the identity of the deleted engagement (PwsEngagementRef). Before deleting an engagement, please use PwsDeleteProject to remove all the projects under this engagement.
Request Format
- PwsDeleteEngagement
- serviceRequest: PwsDeleteEngagementRq
- RequestId: Int32
- SessionTicket: String
- EngagementIdentity: PwsEngagementRef
- StealLockFlag: Boolean **deprecated**
- EngagementTimestamp: String **deprecated**
- LocksToSteal: PwsEntityLockSummary[1..100]
- ProjectorLockSetId: Int32
- CascadeDeleteFlag: Boolean
- serviceRequest: PwsDeleteEngagementRq
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. | AWYoWMBC/cjl/RFPrykteA== | ||
EngagementIdentity | Yes | This is the identity of the engagement to be deleted | |||
StealLockFlag | Boolean | **deprecated** | |||
EngagementTimestamp | String | **deprecated** | |||
LocksToSteal | PwsEntityLockSummary | 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. | ||
CascadeDeleteFlag | Boolean | No | false | If set to true, the associated project(s) will be deleted alongside the engagement. Contract line item(s) under the engagement will be deleted regardless of the flag setting. | false |
Request Usage Example(s)
Response Format
- PwsDeleteEngagementResponse
- PwsDeleteEngagementResult: PwsDeleteEngagementRs
- Messages: PwsMessage[]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- EngagementIdentity: PwsEngagementRef
- EngagementTimestamp: String **deprecated**
- LockStolenFromUserIdentity: PwsUserRef **deprecated**
- StolenLocks: PwsEntityLockSummary
- PwsDeleteEngagementResult: PwsDeleteEngagementRs
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | The web service response status and message. Click here for more information. | ||
ResponseId | Int32 | Click here for more information. | 1 |
Status | Click here for more information. | Ok | |
DateTime | Click here for more information. | 2018-01-19T19:32:35.9700152Z | |
EngagementIdentity | The identity of the deleted engagement | ||
EngagementTimestamp | String | **deprecated** | |
LockStolenFromUserIdentity | **deprecated** | ||
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)
PwsDeleteEngagement - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
54059 | EngagementNotSpecified | A specified engagement identity was incomplete. Each engagement identity must specify either an engagement id, and engagement uid or an engagement code. |
54061 | EngagementNotFound | The specified engagement does not exist. |
54076 | EngagementIsLocked | The engagement is locked by {ownerDisplayName} and may not be updated.??The engagement is locked and may not be updated. |
54532 | UnexpectedErrorDeletingEngagement | There was an unexpected error while trying to delete the engagement. |
54536 | NoPermissionToDeleteEngagement | You do not have appropriate permissions to delete this engagement. |
54537 | EngagementHasProjects | This engagement could not be deleted because there are one or more projects associated with it. |
54556 | EngagementHasInvoices | This engagement could not be deleted because there are one or more invoices associated with it. |