Is there a way to create a Vendor from a Customer as an Other Relationship using SuiteScript?
We need to generate 5000 new, linked Vendors from existing Customer records using a server-side SuiteScript (map/reduce, scheduled script). Is there a way to create a Vendor record from a Customer record and link them as an Other Relationship using a server-side script?
The safe bet is to create your 5000 vendors as new vendors and then use an EntityDeduplicationTask to merge your new vendors into your original customers.
The unsupported way is to use record.transform to transform your customer into the vendor you want to save.