not really a script question currently, we save a ...
# suitescript
s
not really a script question currently, we save a return tracking # to a custom field that is available in the global search. however, when you scan the USPS label it has extra digits on its ideas?
b
you get the script answer, which is to remove the extra digits with a script
s
you can have a script remove digits when i use global search ?
b
remove the extra digits in the field
s
the api doesnt retunr extra digits
b
whats the value in your field?
s
"trackingNumber": "9400111108400944417408",
b
and how is it showing in search
s
that is from the API response ,
Copy code
rec.setValue({ fieldId: "custbody19", value: data.trackingNumber });
so when we use a re bar code scanner on the label
420070049400111108400326448013
b
this doesnt sounds related to a global search
s
It is not a global search problem, but the customer wants to be able to scan in all returns, if he scans the label it return the long number above
b
and how are you generating the label