we did a script to import data from an external api and works fine, but when adding a field that has a relation to another table the script does not insert of gives any error. does anybody has an example or reference for documentation in adding a record with related data on it?