getById function retrieves an obj including the id and deal