Overview
This web service retrieves a list of resources that the authenticated user can view dashboard info or enter time, cost or requested time off on behalf of. The result set can be further narrowed down by a search string or a predefined resource (PwsResourceRef)
- PwsGetOnBehalfOfResources
- serviceRequest: PwsGetOnBehalfOfResourcesRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|
RequestId | Int32 | No |
| Click here for more information. |
|
SessionTicket | String | Yes |
| Click here for more information. | AQ6SEBGgdJSg3aZ5kSDsDg== |
BeginDate | DateTime | No |
| Applies only for ListType T. The response will be limited to resources for whom the caller has permission to enter time on behalf of at any point during the date range bounded by BeginDate and EndDate, If ListType is T and BeginDate is not specified, the first day of the current week is used as the BeginDate. | 2018-01-01z |
EndDate | DateTime | No |
| See BeginDate, If ListType is T and EndDate is not specified, the last day of the current week is used as the EndDate.
| 2018-12-31z |
ListType | String (1) | Yes |
| The type of on-behalf-of users: C: Enter cost T: Enter time O: Enter time off requests D: View dashboard | T |
MaximumRows | Int32 | No |
| The maximum number of resources to be returned. This value is disregarded if a resource is specified in ResourceIdentity. | 5 |
ResourceIdentity | PwsResourceRef | No |
| If a resource is identifier here, the results will be limited to the specified resource. If the caller does not have on behalf of permissions for the specified resource, an empty list will be returned. Click here for more information. |
|
SearchString | String (255) | No |
| A search string to narrow down the results. A resource will be included in the results if the caller has the appropriate on behalf of permissions for the resource and the search string matches the resource's display name. This value is disregarded if a resource is specified in ResourceIdentity. |
|
Usage Example(s)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://projectorpsa.com/PwsProjectorServices/" xmlns:req="http://projectorpsa.com/DataContracts/Requests/" xmlns:tim="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/">
<soapenv:Header/>
<soapenv:Body>
<pws:PwsGetOnBehalfOfResources>
<pws:serviceRequest>
<req:SessionTicket>AQ6SEBGgdJSg3aZ5kSDsDg==</req:SessionTicket>
<tim:BeginDate>2018-01-01z</tim:BeginDate>
<tim:EndDate>2018-03-31z</tim:EndDate>
<tim:ListType>T</tim:ListType>
<tim:MaximumRows>3</tim:MaximumRows>
<tim:SearchString>br</tim:SearchString>
</pws:serviceRequest>
</pws:PwsGetOnBehalfOfResources>
</soapenv:Body>
</soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://projectorpsa.com/PwsProjectorServices/" xmlns:req="http://projectorpsa.com/DataContracts/Requests/" xmlns:tim="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/">
<soapenv:Header/>
<soapenv:Body>
<pws:PwsGetOnBehalfOfResources>
<pws:serviceRequest>
<req:SessionTicket>AQ6SEBGgdJSg3aZ5kSDsDg==</req:SessionTicket>
<tim:BeginDate>2018-01-01z</tim:BeginDate>
<tim:EndDate>2018-03-31z</tim:EndDate>
<tim:ListType>T</tim:ListType>
<tim:MaximumRows>3</tim:MaximumRows>
<tim:SearchString>br</tim:SearchString>
</pws:serviceRequest>
</pws:PwsGetOnBehalfOfResources>
</soapenv:Body>
</soapenv:Envelope>
- PwsGetOnBehalfOfResourcesResponse
- PwsGetOnBehalfOfResourcesResult: PwsGetOnBehalfOfResourcesRs
Response Elements
Element | Data Type | Description | Sample Data |
---|
Messages | PwsMessage[] | The web service response status and message. Click here for more information. |
|
ResponseId | Int32 | Click here for more information. | 0 |
Status | RequestStatus | Click here for more information | Ok |
ServerTimestampUtc | DateTime | Click here for more information. | 2018-03-12T14:57:19.319861Z |
Resources | PwsOnBehalfOfResource[] | The resources that the authenticated user can act on behalf of in the requested manner (as specified in ListType). The resources must also meet the additional criteria, if specified. Click here for more information. |
|
Response Usage Example(s)
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<PwsGetOnBehalfOfResourcesResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
<PwsGetOnBehalfOfResourcesResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
<ResponseId xmlns="http://projectorpsa.com/CommonServices/">0</ResponseId>
<Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
<ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2018-03-12T14:57:19.319861Z</ServerTimestampUtc>
<a:Resources xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:PwsOnBehalfOfResource>
<b:ResourceDisplayName>Bruce Wayne</b:ResourceDisplayName>
<b:ResourceId i:nil="true"/>
<b:ResourceReferenceSystemId>BW-01</b:ResourceReferenceSystemId>
<b:ResourceUid>1152921504606968725</b:ResourceUid>
<b:EmailAddress>bruce@revcorp.doc</b:EmailAddress>
<b:FirstName>Bruce</b:FirstName>
<b:LastName>Wayne</b:LastName>
<b:MiddleName i:nil="true"/>
<b:InactiveFlag>false</b:InactiveFlag>
<b:DashboardOboFlag>true</b:DashboardOboFlag>
<b:ExpenseReportingOboFlag>true</b:ExpenseReportingOboFlag>
<b:TimeEntryOboFlag>true</b:TimeEntryOboFlag>
<b:TimeOffOboFlag>true</b:TimeOffOboFlag>
</b:PwsOnBehalfOfResource>
<b:PwsOnBehalfOfResource>
<b:ResourceDisplayName>Gabrielle Gonzalez</b:ResourceDisplayName>
<b:ResourceId i:nil="true"/>
<b:ResourceReferenceSystemId>023</b:ResourceReferenceSystemId>
<b:ResourceUid>1152921504606963004</b:ResourceUid>
<b:EmailAddress>Gabrielle@revcorp.min.cnv1</b:EmailAddress>
<b:FirstName>Gabrielle</b:FirstName>
<b:LastName>Gonzalez</b:LastName>
<b:MiddleName i:nil="true"/>
<b:InactiveFlag>false</b:InactiveFlag>
<b:DashboardOboFlag>true</b:DashboardOboFlag>
<b:ExpenseReportingOboFlag>true</b:ExpenseReportingOboFlag>
<b:TimeEntryOboFlag>true</b:TimeEntryOboFlag>
<b:TimeOffOboFlag>true</b:TimeOffOboFlag>
</b:PwsOnBehalfOfResource>
</a:Resources>
</PwsGetOnBehalfOfResourcesResult>
</PwsGetOnBehalfOfResourcesResponse>
</s:Body>
</s:Envelope>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<PwsGetOnBehalfOfResourcesResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
<PwsGetOnBehalfOfResourcesResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
<ResponseId xmlns="http://projectorpsa.com/CommonServices/">0</ResponseId>
<Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
<ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2018-03-12T15:49:02.3452499Z</ServerTimestampUtc>
<a:Resources xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:PwsOnBehalfOfResource>
<b:ResourceDisplayName>Larry Krakauer</b:ResourceDisplayName>
<b:ResourceId i:nil="true"/>
<b:ResourceReferenceSystemId>097</b:ResourceReferenceSystemId>
<b:ResourceUid>1152921504606963016</b:ResourceUid>
<b:EmailAddress>Larry@revcorp.doc</b:EmailAddress>
<b:FirstName>Larry</b:FirstName>
<b:LastName>Krakauer</b:LastName>
<b:MiddleName>A</b:MiddleName>
<b:InactiveFlag>false</b:InactiveFlag>
<b:DashboardOboFlag>false</b:DashboardOboFlag>
<b:ExpenseReportingOboFlag>false</b:ExpenseReportingOboFlag>
<b:TimeEntryOboFlag>true</b:TimeEntryOboFlag>
<b:TimeOffOboFlag>false</b:TimeOffOboFlag>
</b:PwsOnBehalfOfResource>
</a:Resources>
</PwsGetOnBehalfOfResourcesResult>
</PwsGetOnBehalfOfResourcesResponse>
</s:Body>
</s:Envelope>
PwsGetOnBehalfofResourceResult - Common Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|
64223 | InvalidValueForListType | The specified value for ListType is invalid. Valid values are T for time or C for cost. |