I want to pass the documentId value when creating an entry

note: I tried to do that and it accepted it but i asked if is the correct way or the best practice to do it