pp108 : CalculateAvailableBusinessHours

CalculateAvailableBusinessHours


This method calculates the business duration in milliseconds in a date interval.

SOAP Request

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
        <calculateAvailableBusinessHours xmlns="http://schemas.cordys.com/buscalendar/runtime/BusinessCalendar/1.0">
            <WorkspaceID>002481F0-8E9F-11E2-EE36-A5EED1105F38</WorkspaceID>
            <calendarName>Calender1</calendarName>
            <startDate>2008-09-23T22:37:53.234</startDate>
            <endDate>2013-09-23T22:37:53.234</endDate>
        </calculateAvailableBusinessHours>
    </SOAP:Body>
</SOAP:Envelope>
Request Parameters

Parameter

Description

Mandatory

Accepted Input Values

WorkspaceID ID of CWS Workspace No GUID (optional)

calendarName

Unique identifier for the calendar. This can be a full qualified name or a document ID.

Yes

You can specify one of the following values:

  • Full Qualified Name (FQN)
  • Document ID

startDate

Start date of the interval

Yes

Date must be in the UTC format. For example, 2008-09-23T22:37:53.234

endDate

End date of the interval

Yes

Date must be in the UTC format. For example, 2008-09-23T22:37:53.234

SOAP Response

<data>
    <calculateAvailableBusinessHoursResponse
        xmlns="http://schemas.cordys.com/buscalendar/runtime/BusinessCalendar/1.0" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
        <calculateAvailableBusinessHours>13132800000</calculateAvailableBusinessHours>
    </calculateAvailableBusinessHoursResponse>
</data>
Response Parameters

Parameter

Description

calculateAvailableBusinessHours

Business duration in milliseconds. For example, 57600000 milliseconds.