RETRIEVE AN APPLICATION ID