Is it possible to search for transactions that use...
# general
d
Is it possible to search for transactions that use "custom" SHIP TO addresses?
t
in the past, i've had to make a saved search and export to csv and then dig from there. 😕
d
Thanks. That will not work in this case. However, it is tied with a script so I might have to do something that way.
m
You'd need to do some scripting to do that
1) Do a search for all addresses for all customers (and get the address internal ids)
2) Compare that to the Shipping and Billing Address internal id
for each transaction
The ones that aren't there are custom
d
Thanks. I'm trying to avoid that if possible.
m
Yeah =/
I tried seeing if there was a way... couldn't find it myself... sorry
The problem is you need a double joing
join*
and Netsuite doesn't have those
Address join Customer compared to Address join Transaction join Customer
Hold on... might be able to get it working...
d
That would be great! I was trying to use the Workbooks to do it but still having issues there too.
m
So I think I can get it so where you can get everything all in one search... however... you can't filter out the bad ones... you still need to run a script (because Netsuite only uses Outer joins). But let me see what I can do.
👍 1
So try this:
Entity Search
In Results
Transaction Fields Billing Address
Transaction Fields Shipping Address
Address Fields Address
That should give you every combination
but that doesn't just highlight the custom ones so that probably doesn't work =/
Hmmm
Yeah, so I'm going to say not possible without scripting probably
Sorry about that
I'd do the method i mentioned earlier, two separate searches and then a comparison
It'll probably be the most performant
d
Thanks. It would be a lot easier if the custom address showed up on the entity record somewhere
m
Yeah, with a flag or something
Best of Luck with it