Add a related record using deluge?

Add a related record using deluge?

Hi,

I would like to add records using deluge so they appear in a subform. For example, if I have a company form with a subform relating to a contacts form, I would like to programmatically create contact records so they show up in the correct parent record's subform. I can create records with deluge OK, but can't work out how to create the relationship.

I saw a similar post to this from 2013, but nothing since.

Thanks, Andrew