Overview
This web service retrieves the document folder identity (PwsFolderRef) for a specified expense document (PwsExpenseDocumentRef), invoice (PwsInvoiceRef), project (PwsProjectRef), project issue (PwsProjectIssueRef), resource (PwsResourceRef), user (PwsUserRef), cost card (PwsCostCardRef) or payment voucher (PwsPaymentVoucherRef).
Request Format
- PwsGetFolder
- serviceRequest: PwsGetFolderRq
- RequestId: Int32
- SessionTicket: String
- CreateIfNeededFlag: Boolean
- ExpenseDocumentIdentity: PwsExpenseDocumentRef
- FolderTypeCode: String
- InvoiceIdentity: PwsInvoiceRef
- ProjectIdentity: PwsProjectRef
- ProjectIssueIdentity: PwsProjectIssueRef
- ResourceIdentity: PwsResourceRef
- UserIdentity: PwsUserRef
- CostCardIdentity: PwsCostCardRef
- PaymentVoucherIdentity: PwsPaymentVoucherRef
- serviceRequest: PwsGetFolderRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 | No | Click here for more information. | 1 | |
SessionTicket | String | Yes | Click here for more information. | AZZNMfO8vxeYuc3WXDkixw== | |
CreateIfNeededFlag | Boolean | No | false | If set to 'true', the folder will be created if it does not already exist | false |
ExpenseDocumentIdentity | One of ExpenseDocumentIdentity, InvoiceIdentity, ProjectIdentity, ProjectIssueIdentity, ResourceIdentity, UserIdentity, CostCardIdentity or PaymentVoucherIdentity is required | The expense document identity, applicable if the FolderTypeCode = 'ExpenseReportFolder' | |||
FolderTypeCode | String | Yes | The folder type code: 'ProjectWorkspaceFolder' for Project Workspace Folder 'ResourceResumeFolder' for Resource Resume Folder 'InvoiceFolder' for Invoice Folder 'ProjectIssueFolder' for Project Issue Folder 'ExpenseReportFolder' for Expense Report Folder 'UserReceiptPoolFolder' for a User's Receipt Folder 'UserIssueAttachmentPoolFolder' for User's Issue Attachment Pool Folder 'PaymentVoucherFolder' for Payment Voucher Folder | ExpenseReportFolder | |
InvoiceIdentity | See ExpenseDocumentIdentity | The invoice identity, applicable if the FolderTypeCode = 'InvoiceFolder' | |||
ProjectIdentity | See ExpenseDocumentIdentity | The project identity, applicable if the FolderTypeCode = 'ProjectWorkspaceFolder' | |||
ProjectIssueIdentity | See ExpenseDocumentIdentity | The project issue identity, applicable if the FolderTypeCode = 'ProjectIssueFolder' | |||
ResourceIdentity | See ExpenseDocumentIdentity | The resource identity, applicable if the FolderTypeCode = 'ResourceResumeFolder' | |||
UserIdentity | See ExpenseDocumentIdentity | The user identity, applicable if the FolderTypeCode = 'UserReceiptPoolFolder' or 'UserIssueAttachmentPoolFolder' | |||
CostCardIdentity | See ExpenseDocumentIdentity | The cost card identity, applicable if the FolderTypeCode = 'ExpenseReportFolder' | |||
PaymentVoucherIdentity | See ExpenseDocumentIdentity | The payment voucher identity, applicable if the FolderTypeCode = 'PaymentVoucherFolder' |
Request Usage Example(s)
Response Format
- PwsGetFolderResponse
- PwsGetFolderResult: PwsGetFolderRs
- Messages: PwsMessage
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- FolderIdentity: PwsFolderRef
- PwsGetFolderResult: PwsGetFolderRs
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-03-16T17:07:24.3032414Z |
FolderIdentity | The document folder identity |
Response Usage Example(s)
PwsGetFolder - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
21000 | FolderTypeCodeRequiredForGetFolder | A folder type code must be specified. |
21017 | InvalidValueForFolderTypeCode | The specified folder type code is not recognized. |
54279 | ProjectReferenceInvalid | A specified project identity was incomplete. Each project identity must specify either a project id, a project uid or a project code. |
54282 | ProjectNotFound | Specified project does not exist. |
54833 | ProjectIssueNotFound | Project issue not found. |
57545 | ResourceNotFound | The specified resource does not exist. |
57551 | UserNotFound | Specified user does not exist. |
65491 | CostCardNotFound | CostCard not found. |
65499 | PaymentVoucherNotFound | Payment voucher not found. |
68199 | InvoiceNotFound | Invoice not found. |