How is the identifier created in the Attachment table in the object_id column for type='E' (dynamic form field attachment). How is this hash created? ERD diagram : object_id hash of entry_id and field_id
nor_rem
You can simply look at the AttachmentFile::upload() method and see how.
AttachmentFile::upload()
Cheers.