Versions Compared

Key

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

Overview


This service is used to retrieve a list of time alerts (PwsTimeAlerts) for the resource. Alerts are generated for weeks containing rejected or incomplete time cards, draft time cards and missing time. This service can operate in two modes:

...

Panel
titlePwsGetTimeAlerts Request
  • PwsGetTimeAlerts
    • serviceRequest: PwsGetTimeAlertsRq
      • RequestId: Int32
      • SessionTicket: String
      • CountOnly: Boolean
      • IncludeDraftFlag: Boolean
      • IncludeMissingTimeFlag: Boolean
      • IncludeRejectedOrIncompleteFlag: Boolean
      • MinAlertsDate: DateTime
      • ResourceIdentity: PwsResourceRef
      • AlertsPeriodType: String
      • MissingTimeCalculateDailyFlag: Boolean

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.

ARgBFuS/0LDcPCTXeih6XQ==

CountOnly

Boolean

No 

false

If set to 'true', the web service will include only a count of time alerts. If set to 'false", the web service will return full details of the time alerts.

false

IncludeDraftFlag

Boolean

One of IncludeDraftFlag, IncludeMissingTimeFlag, and/or IncludeRejectedOrIncompleteFlag is required

false

If set to 'true', the web service will return draft time alerts

true

IncludeMissingTimeFlag

Boolean

See InlcudeDraftFlag

false

If set to 'true', the web service will return missing time alerts

true 

IncludeRejectedOrIncompleteFlag

Boolean

See IncludeDraftFlag

false

If set to 'true', the web service will return rejected or incomplete time alerts

true

MinAlertsDate

DateTime

*** deprecated ***

*** deprecated ***

*** This field has been deprecated ***

 


ResourceIdentity

PwsResourceRef

Yes

 


The identity of the resource associated with the time alerts

 


AlertsPeriodType

String

 

 



The alerts period type, valid values include:

"D" for day

"W" for week

"M" for month

"A" for accounting period

M

MissingTimeCalculateDailyFlag

Boolean

 


false

If set to 'true', the web service will calculate the daily missing time

false

Request Usage Example(s)


Code Block
languagexml
titleExample 01
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:tim="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/">
   <soapenv:Header/>
   <soapenv:Body>
      <pws:PwsGetTimeAlerts>
         <pws:serviceRequest>
            <req:RequestId>1</req:RequestId>
            <req:SessionTicket>ARgBFuS/0LDcPCTXeih6XQ==</req:SessionTicket>
            <tim:CountOnly>false</tim:CountOnly>
            <tim:IncludeDraftFlag>true</tim:IncludeDraftFlag>
            <tim:IncludeMissingTimeFlag>true</tim:IncludeMissingTimeFlag>
            <tim:IncludeRejectedOrIncompleteFlag>true</tim:IncludeRejectedOrIncompleteFlag>
            <tim:ResourceIdentity>
               <com:ResourceReferenceSystemId>IT (USA) - 10</com:ResourceReferenceSystemId>
            </tim:ResourceIdentity>
            <tim:AlertsPeriodType>M</tim:AlertsPeriodType>
            <tim:MissingTimeCalculateDailyFlag>false</tim:MissingTimeCalculateDailyFlag>
         </pws:serviceRequest>
      </pws:PwsGetTimeAlerts>
   </soapenv:Body>
</soapenv:Envelope>

...

Panel
titlePwsGetTimeAlerts Response

Response Elements


Element

Data Type

Description

Sample Data

Messages

PwsMessage[]

Click here for more information

 


ResponseId

Int32

Click here for more information

Status

RequestStatus

Click here for more information

 


ServerTimestampUtc

DateTime

Click here for more information

2018-03-12T17:31:31.6073673Z 

TimeAlerts

PwsTimeAlerts

The full details of the time alerts

 


Response Usage Example(s)

...

ErrorNumber

ErrorCode

ErrorText

10103NothingToDoThere is nothing to do.
20065InvalidValueForAlertsPeriodTypeSpecified value for alerts period type is invalid. Valid values are D for day, W for week, M for month and A for accounting period.
57545ResourceNotFoundThe specified resource does not exist.