Is it possible to load an entities “Other relationships” using SuiteScript?

We have successfully created a linked customer record from a vendor record by creating a customer and then merging it to the vendor using an entity deduplication task.

I am currently struggling to find a way to load a customer OR a vendor and programmatically access the “Other relationships”

For example if I were to load a vendor, is there a way to access the linked customer record?

Rookie Asked on September 21, 2021 in SuiteScript.
Add Comment
3 Answer(s)

Load the other record, it will have the same internal id, but different record type

Intermediate Answered on September 21, 2021.
Add Comment

Appreciate your response. We would basically try to load related entities by ID and if they are present then they exist

 

 

Rookie Answered on September 21, 2021.
Add Comment

Use N/query’s entity table to tell which entity has which other relationship. The type column gives information about the types, and there are specific joins for each  other relationship an entity could have

Intermediate Answered on September 21, 2021.
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