📚 SAP Business One SDK Help

GetHolidayList Method
See Also  Example

Description

Returns the HolidaysParams data collection that identify all holidays.

Syntax

Visual Basic
Public Function GetHolidayList() As HolidaysParams

Example

C#Copy Code
SAPbobsCOM.CompanyService oCmpSrv = oCompany.GetCompanyService(); 
SAPbobsCOM.HolidayService holidayService = oCmpSrv.GetBusinessService(SAPbobsCOM.ServiceTypes.HolidayService); 
SAPbobsCOM.HolidaysParams hdList = holidayService.GetHolidayList(); 
for (int i = 0; i < hdList.Count; i++) 

    Console.WriteLine(hdList.Item(i).HolidayCode); 
}

See Also