How to create a vendor record from a customer record? and attach it to “other relationship” field by SuiteScript?

i am creating a customer record in an userevent aftersubmit script. After that i need to create and attach a vendor record with same name, in the other relationship field in the relationships tab on the customer record.

How to create a vendor record from a customer record? and attach it to

Rookie Asked on August 17, 2022 in SuiteScript.
Add Comment
1 Answer(s)

https://blog.prolecto.com/2020/09/12/netsuites-entity-other-relationship-idiosyncrasies/

Not supported in the SuiteScript API, as you found.  But Prolecto has a “hack” using a URL in the browser (so maybe you can simulate a URL call in your script).  Also there *MAY* be a back-door method to create a Vendor record.  Now you have a Customer record and a Vendor record.  And then use the Duplicate detection function to merge them into 1 surviving record.  I don’t know.  Never done it.  Just an idea to explore.

Rookie Answered on August 27, 2022.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor