I created a new record via script but am getting a...
# suitescript
n
I created a new record via script but am getting an error setting Branch Address. It is a custom addressbook field but has a filter on it for the Service Customer. When you create the record via script then edit the list is empty, BUT if you repick the same customer then go back to the filtered address list they all show up. Anybody else have this issue? Creating in dynamic mode fyi
b
you will want to figure out how that addressbook field is filtered
if its done with a client script, you will need to understand how that script works
if its done with sourcing/filtering on the custom field type, then you want to make extra sure you are setting the correct field
its very common to have 2 fields related to addressbook since sourcing/filtering requires an entity field, while you typically work with one of its subtypes, like customer
n
Its filtered by sourcing/filtering. Would it be better to use the address list instead of address book?
b
worse, address is not related to entity, so you have no filtering
n
yeah, we need address book and filtering so they could still do wildcard search on the field vs a custom field with a filtered list we create
also this is a customer record I am on
b
what does the sourcing/filtering of the field look like
n
b
try using the actual sourcing options instead
n
ugh yeah i found the issue. The custom customer field was "customer" list instead of "Entity". Got it working now. Thanks though good to know the addressbook really needs entity.