PwsGetEngagementList
Overview
This web service retrieves a list of engagement summary records (PwsEngagementSummary), based on specified search criteria. The following parameters affect the list of engagements retrieved:
- QueryString. Find all engagements matching specified string in engagement name or engagement code, client name or code (for engagement's client and any of it's parent clients) or project name or code (for projects that are part of the engagement).
- IncludeClosedFlag. If true, engagements that are open or closed according to the current engagement stage settings will be returned. Otherwise, only engagements that are not considered closed will be returned.
- LastUpdatedSinceTimestamp. If specified, only engagements updated after the specified timestamp will be retrieved.
- PurchaseOrderNumber. If specified, only engagements with a purchase number that exactly matches the specified value will be retrieved.Â
- EngagementId/EngagementUid/EngagementCode. If specified, the identified engagement will be returned (QueryString, IncludeClosedFlag, LastUpdatedSinceTimestamp and PurchaseOrderNumber will be ignored).
Request Format
- PwsGetEngagementList
- serviceRequest: PwsGetEngagementListRq
- RequestId: Int32
- SessionTicket: String
- EngagementIdentity: PwsEngagementRef
- IncludeClosedFlag: Boolean
- MaxRowsToReturn: Int32
- QueryString: String (255)
- LastUpdatedSinceTimestamp: DateTime
- PurchaseOrderNumber: String (50)
- serviceRequest: PwsGetEngagementListRq
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 | Ab54WRQ1LlgW9CoQrXhyzw== | ||
EngagementIdentity | No | The unique keys used to identify the engagement(s) to be retrieved | |||
IncludeClosedFlag | Boolean | No | false | If set to 'true', engagements that are open or closed according to the current engagement stage settings will be returned. Otherwise, only engagements that are not considered closed will be returned. This flag is disregarded if an engagement is specified in EngagementIdentity. | true |
MaxRowsToReturn | Int32 | No | The maximum number of engagements to be retrieved. This value is disregarded if an engagement is specified in EngagementIdentity. | 5 | |
String (255) | No | A search string to narrow down the results. An engagement will be included in the results if the search string matches the engagement code or engagement name, or if it matches the client name or number for the engagement's client or any parent client thereof, or if it matches the contract line item name or code or project name or code of any contract line item or project contained in the engagement. This value is disregarded if an engagement is specified in EngagementIdentity. | |||
LastUpdatedSinceTimestamp | DateTime | No | Only engagements that have been updated on or after the specified date/time will be retrieved. This value is disregarded if an engagement is specified. | 2018-01-01 | |
PurchaseOrderNumber | String (50) | No | An exact match filter on the engagement purchase order number. If specified, only engagements whose purchase order number exactly matches the specified value will be included in the response. This value is disregarded if an engagement is specified. |
Request Usage Example(s)
Response Format
- PwsGetEngagementListResponse
- PwsGetEngagementListResult: PwsGetEngagementListRs
- Messages: PwsMessage[]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- Engagements: PwsEngagementSummary[]
- PwsGetEngagementListResult: PwsGetEngagementListRs
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 | |
ServerTimestampUtc | DateTime | Click here for more information. | 2018-01-19T16:51:13.0252909Z |
Engagements | The engagement summary records that were fetched by the service |
Response Usage Example(s)
PwsGetEngagementList - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | Description |
---|---|---|
104 | RowCountExceeded | Exceeded maximum row count |
10100 | MaxRowsToReturnOutOfRange | Invalid value specified for MaxRowsToReturn |
50045 | ViewPermissionDenied | Permission denied |
54024 | UnexpectedErrorRetrievingEngagementList | Unexpected error retrieving engagement list |
54061 | EngagementNotFound | Specified engagement not found |
54370 | NoPermissionToViewEngagement | Permission denied to view specific engagement |