Want To Create Relate Field With code.

Iā€™m not very certain of the answer, but maybe this will help:

If you Google for

suitecrm "rname"

(with the quote marks) you might get other good results, because ā€œrnameā€ is only used for relate fields.