Return the case id when adding a case