record.transform kinda works last time i tried
# suitescript
b
record.transform kinda works last time i tried
s
so, you just use record.transform() to transform customer to vendor (for example, when the customer is created)
b
you can see what the parameters are like from the urls in those suiteanswer articles
s
It seems to work… I just used record.transform() and used ‘ignoreMandatoryFIelds’ upon save. When saved, both record types are created with the same internal id.
b
last person i told tried and had intermittent errors
s
hmm.. this attempt was successful.. I’ll keep an eye on it.. would be fantastic if it worked consistently upon create of the Customer..
n
Wonder what happens if you have a vendor with internal id of 7 and a customer of 7 and transform the customer? Maybe that's when you see an error if it doesn't increment the id?
b
entities share the same internal id pool
👍 1
if you have a vendor and a customer with the same internal id, then you already have the other relationship