variables.componentName = "buildingService"; var retString = ""; var retData = variables.buildingDAO.getBuildingByBuildingCode(BuildingCode=arguments.BuildingCode); if ( NOT StructIsEmpty(retData) AND StructKeyExists(retData,"values") AND StructKeyExists(retData.values,"uniqueID") AND LEN(TRIM(retData.values.uniqueID)) ) retString = retData.values.uniqueID; return retString; /*var retString = ""; var retData = variables.buildingDAO.getBuildingByBuildingCode(BuildingCode=arguments.BuildingCode); if ( NOT StructIsEmpty(retData) AND StructKeyExists(retData,"values") AND StructKeyExists(retData.values,"uniqueID") AND LEN(TRIM(retData.values.uniqueID)) ) retString = retData.values.uniqueID; return retString; */