PwsSaveProjectTaskTypes
Overview
This web service inserts, updates or deletes project task type(s) based on a detailed project task type structure (PwsProjectTaskTypeDetail).
Request Format
- PwsSaveProjectTaskTypes
- serviceRequest: PwsSaveProjectTaskTypesRq
- RequestId: Int32
- SessionTicket: String
- InactivateIfInUseFlag: Boolean
- LocksToSteal: PwsEntityLockSummary[]
- ProjectIdentity: PwsProjectRef
- ProjectTaskTypes: PwsProjectTaskTypeDetail[1..100]
- ProjectorLockSetId: Int32
- RateTaskTimestamp: String
- RevalueAction: String
- serviceRequest: PwsSaveProjectTaskTypesRq
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. | AXimxHvLSk12MuOkzXCGyg== | |
InactivateIfInUseFlag | Boolean | Yes | false | If this flag is set to true, and task types that have been omitted from the request (and thereby marked for deletion) will be set to inactive if in use and cannot be deleted. | true |
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. | |
ProjectIdentity | Yes |
| The identity of the project. Click here for more information. | ||
ProjectTaskTypes | PwsProjectTaskTypeDetail[1..100] | Yes |
| The project task type that is to be added, updated or deleted | |
ProjectorLockSetId | Int32 | No |
| A projector lock set id is an identifier for a group of one or more locks held as a unit. | |
RateTaskTimestamp | 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. | |
RevalueAction | String | Yes | N | This indicates how the service should respond if there are time cards that would become in need of revalue as a result of the changes. The valid values are:
| N |
Request Usage Example(s)
Response Format
- PwsSaveProjectTaskTypesResponse
- PwsSaveProjectTaskTypesResult: PwsSaveProjectTaskTypesRs
- Messages: PwsMessage[]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- InactivatedFlag: Boolean
- RateTaskTimestamp: String
- StolenLocks: PwsEntityLockSummary
- RevalueReport: PwsRevalueReport
- PwsSaveProjectTaskTypesResult: PwsSaveProjectTaskTypesRs
Response Elements
Element | Data Type | Description |
---|---|---|
Messages | The web service response status and message. Click here for more information. | |
Int32 | Click here for more information. | |
RequestStatus | Click here for more information | |
DateTime | Click here for more information. | |
InactivatedFlag | Boolean | This flag is set to true if one or more tasks have been marked as inactive as a result of the update |
RateTaskTimestamp | 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 | 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. | |
RevalueReport | Information about time cards on the project that were affected or would be affected by the change. Populated only when RevalueAction is R (Revalue) or C (Check). If RevalueAction is R, the values included in this structure reflect what was done. If RevalueAction is C, the values reflect what would be done if the service were invoked again with RevalueAction set to R. |
Response Usage Example(s)
PwsSaveProjectTaskTypes - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
15002 | ProjectNotSpecifiedForSaveTaskType | No project was specified for saving project task type. |
54645 | ProjectTaskTypeNameIsRequired | The project task type name is required for new project task types. |
54646 | ProjectTaskTypeNameAlreadyInUse | The specified project task type name is already in use. |
54647 | ProjectRateTypeIsRequired | The default project rate type is required for new project task types. |
54650 | ProjectRateTypeNotFound | The specified default project rate type does not exist. |
55069 | TaskTypePurchaseOrderSpecifiedWhenInheriting | Purchase order number may not be specified when inheriting purchase order number. |
57556 | TaskTypeNotSpecified | The standard task type is required for new project task types. |