All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest
Method | HTTP request | Description |
---|---|---|
departmentGetAutocompleteV2 | GET /2/object/department/getAutocomplete/{sSelector} | Retrieve Departments and IDs |
DepartmentGetAutocompleteV2Response departmentGetAutocompleteV2(sSelector, eFilterActive, sQuery, acceptLanguage)
Retrieve Departments and IDs
Get the list of Department to be used in a dropdown or autocomplete control.
// Import classes:
//import org.openapitools.client.api.ObjectDepartmentApi;
ObjectDepartmentApi apiInstance = new ObjectDepartmentApi();
String sSelector = null; // String | The type of Departments to return
String eFilterActive = Active; // String | Specify which results we want to display.
String sQuery = null; // String | Allow to filter the returned results
HeaderAcceptLanguage acceptLanguage = null; // HeaderAcceptLanguage |
try {
DepartmentGetAutocompleteV2Response result = apiInstance.departmentGetAutocompleteV2(sSelector, eFilterActive, sQuery, acceptLanguage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ObjectDepartmentApi#departmentGetAutocompleteV2");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
sSelector | String | The type of Departments to return | [default to null] [enum: All, AllButDepartmentZero, Company, CompanyButDepartmentZero] |
eFilterActive | String | Specify which results we want to display. | [optional] [default to Active] [enum: All, Active, Inactive] |
sQuery | String | Allow to filter the returned results | [optional] [default to null] |
acceptLanguage | HeaderAcceptLanguage | [optional] [default to null] [enum: *, en, fr] |
DepartmentGetAutocompleteV2Response
- Content-Type: Not defined
- Accept: application/json