Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This web service retrieves a list of cost center summary records (PwsCostCenterSummary), based on specified search criteria. You may also expliclity explicitly retrieve a summary of an explicitly specified cost center (PwsCostCenterRef). 

Note

Unlike most other services that retrieve summary lists from Projector, you will likely need to specify at least one of the "Include" flags if you are not using the service to retrieve a single summary.  If you so not specify one of the flags on the request, you are likely to have an empty result set returned.


Request Format


Panel
titlePwsGetCostCenterList Request
  • PwsGetCostCenterList
    • serviceRequest: PwsGetCostCenterListRq
      • RequestId: Int32
      • SessionTicket: String
      • CostCenterIdentity: PwsCostCenterRef
      • IncludeAncestorsFlag: Boolean
      • IncludeEngagementCostCentersFlag: Boolean
      • IncludeInactiveFlag: Boolean
      • IncludeResourceCostCentersFlag: Boolean
      • QueryString: String (255)
      • IncludeNonResourceNonEngagementCostCentersFlag: Boolean

...

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.

ARKG+qjBuMq+YMu7gEYnoA==

CostCenterIdentity

PwsCostCenterRef

No 


For this service, the caller may specify a cost center identity. If a cost center identity is not specified all clients fitting the other specified criteria will be returned.


IncludeAncestorsFlag

Boolean

No

false

If set to 'true', the ancestors (i.e. parent, grandparents, etc.) of the returned cost center(s) will also be returned whether or not they fit the search criteria. Otherwise, only the specified cost center or the cost centers matching the specified criteria will be returned.

false

IncludeEngagementCostCentersFlag

Boolean

No 

false 

If set to 'true', cost centers enabled for engagements will be included in the response (as long as they meet the remaining criteria). This flag is disregarded if a cost center is specified.

true

IncludeInactiveFlag

Boolean

No 

false 

If set to 'true', all cost centers including those that have been marked as inactive will be returned. This flag is disregarded if a cost center is specified.

true

IncludeResourceCostCentersFlag

Boolean

No 

false 

If set to 'true', cost centers enabled for resources will be included in the response (as long as they meet the remaining criteria). This flag is disregarded if a cost center is specified.

true

QueryString

String (255)

No 


A search string to narrow down the results. A cost center will be included in the results if the search string matches the cost center number or cost center name, or if it is a child to a cost center that is matched based upon the criteria. This value is disregarded if a cost center is specified in CostCenterIdentity.


IncludeNonResourceNonEngagementCostCentersFlag

Boolean

No 

false 

If set to 'true', all cost centers including those that are not enabled for resources or engagements will be returned. This flag is disregarded if a cost center is specified.

true

Request Usage Example(s)


Code Block
languagexml
titleExample 01 - Cost Center is specified
collapsetrue
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://projectorpsa.com/PwsProjectorServices/" xmlns:req="http://projectorpsa.com/DataContracts/Requests/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/">
   <soapenv:Header/>
   <soapenv:Body>
      <pws:PwsGetCostCenterList>
         <pws:serviceRequest>
            <req:RequestId>1</req:RequestId>
            <req:SessionTicket>ARKG+qjBuMq+YMu7gEYnoA==</req:SessionTicket>
            <req:CostCenterIdentity>
               <com:CostCenterName>SCT Associates (USA)</com:CostCenterName>
            </req:CostCenterIdentity>
            <req:IncludeAncestorsFlag>false</req:IncludeAncestorsFlag>
            <req:IncludeEngagementCostCentersFlag>true</req:IncludeEngagementCostCentersFlag>
            <req:IncludeInactiveFlag>true</req:IncludeInactiveFlag>
            <req:IncludeResourceCostCentersFlag>true</req:IncludeResourceCostCentersFlag>
            <req:IncludeNonResourceNonEngagementCostCentersFlag>true</req:IncludeNonResourceNonEngagementCostCentersFlag>
         </pws:serviceRequest>
      </pws:PwsGetCostCenterList>
   </soapenv:Body>
</soapenv:Envelope>

...

Panel
titlePwsGetCostCenterList Response

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.

1

Status

RequestStatus

Click here for more information.

Ok 

ServerTimestampUtc

DateTime

Click here for more information.

2018-01-23T20:00:11.4720411Z

CostCenters

PwsCostCenterSummary[]

 The cost center summary records that were fetched by the service


...