Hi all! When doing an upsert on vendor records, if...
# suitetalkapi
k
Hi all! When doing an upsert on vendor records, if I include an address and the vendor already exists, it duplicates the address even if it's identical to one that already exists. What's the right way to NOT duplicate addresses on vendor upserts?
b
none really
if your client is the only thing managing addresses, then you may be able to get away with using replace all
👍 1
otherwise you need the internal id of the addressbook line to update an existing address
which basically means you need to lookup and store that information
which means its not really an upsert but an update
k
I'm using Boomi to bring them over from Salesforce
I'll have to ask the accounting team if they need to keep existing addresses in NS that are different from SF
Good advice, thanks!
b
replace all is an oppressive solution
its the equivalent to deleting all the existing addresses and adding new ones
k
True but SF is the source of truth in this case so it should always match anyway, right?
I suppose I could do a get vendor addresses in Boomi first but it'll be easier to replace them