How can we get vendor Id from customer record whic...
# suitescript
b
How can we get vendor Id from customer record which other relationship is set? I tried saved search but filter for Other Relationships is just types, not internal ids. I have a customer and I created vendor from that customer using Other Relationship. In suitescript or using saved search, I want to get that Vendor Id from customer id
a
if you're using other relationship then the vendor internal id IS the customer internal id 🙂
if you look at the url for the customer and the vendor they will have the same
id=xxx
in there
b
What if vendor with same internal id already exists? I know usually they are same but I'm thinking there might be different cases too?
a
the internal id is actually unique for ENTITIES so you can't have an internal id that's used by a customer / vendor / employee etc. etc.
unless you use the other relationships which will make that entity both a customer AND a Vendor or w/e
b
I see
so you mean there will be no Vendor (id =2 ) if there is customer with (id = 2) unless they are linked with other relationship?
a
correct
b
Thank you
I appreciate your help
a
you're very welcome