INHO the code becomes clearer if you call the `idn` field `recordId` because it is not yet clear if it really is the idn.