Operation Details
Description: Method to return all active organization units for specified organization structure and organization unit name.
Sterotype: ns
SQL
SELECT
  OrganisationUnit.organisationUnitID,
  OrganisationUnit.name,
  OrganisationUnit.businessTypeCode,
  OrganisationUnit.creationDate,
  OrganisationUnit.recordStatus,
  OrganisationUnit.comments,
  OrganisationUnit.defaultPrinterID,
  OrganisationUnit.statusCode
INTO
  :organisationUnitID,
  :name,
  :businessTypeCode,
  :creationDate,
  :recordStatus,
  :comments,
  :defaultPrinterID,
  :statusCode 
FROM
  OrganisationUnit,
  OrgUnitParentLink 
WHERE OrgUnitParentLink.organisationStructureID = :organisationStructureID 
  AND OrganisationUnit.organisationUnitID = OrgUnitParentLink.organisationUnitID 
  AND OrganisationUnit.recordStatus = :recordStatus 
  AND UPPER(OrganisationUnit.name) = :name