pp108 : CalculateLatestBusinessDate

CalculateLatestBusinessDate


This method calculates the latest date before a given start date and implements the backward planning algorithm.

SOAP Request

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
        <calculateLatestBusinessDate xmlns="http://schemas.cordys.com/buscalendar/runtime/BusinessCalendar/1.0">
            <WorkspaceID>002481F0-8E9F-11E2-EE36-A5EED1105F38</WorkspaceID>
            <calendarName>Calender1</calendarName>
            <date> 2008-09-23T22:37:53.234</date>
        </calculateLatestBusinessDate>
    </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

Date

Date from which backward planning is done

Yes

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

SOAP Response

<data>
    <calculateLatestBusinessDateResponse
        xmlns="http://schemas.cordys.com/buscalendar/runtime/BusinessCalendar/1.0" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
        <calculateLatestBusinessDate>2008-09-23T10:30:00.234</calculateLatestBusinessDate>
    </calculateLatestBusinessDateResponse>
</data>
Response Parameters

Parameter

Description

calculateLatestBusinessDate

Date in UTC