I have the same question as Michael and can’t seem to follow along.
I use “wpcf7_before_send_mail” to send the submitted form to a database. The database returns their unique key (insert_id). Then I would save that unique key back to the posted_data, but now posted_data is just a copy. Can’t figure out how to save it back to the original, so the email will capture it.