I would like to use the item records Manufacture C...
# suitescript
a
I would like to use the item records Manufacture Country (id: countryofmanufacture) list in a Suitelet, but I cannot seem to use it is as a source. Is this available for us to use?
var coo = form.addField({
id: 'manufactureCountry',
type: serverWidget.FieldType.SELECT,
label: 'Manufacturer Country',
container: 'itemgroup',
source: 'countryofmanufacture'
});
b
the id of a list is not the same as the field if of a field that uses that list
a
I understand, it was an example. I found some id's for 'hidden' lists, like -3 for Vendor Records, or -101 for Class.
b
the ids are not really hidden
they are the same ids as those used by custom fields
List/Record
Field
so if you can find your list there, you can get that fields internal id to use
a
Is there a place in NS to find 'native' lists? Custom Lists only brings up custom lists and their id's.
b
make a custom field. of whatever type you favor
make it a list/record type
set the List/Record field
get that fields internal id to use in your script
a
Ah, I understand. 🙏
message has been deleted
id for country list.
creating the item field sourcing that and then checking the browser record worked well
b
country and state tend to be less useful, they use internal id numbers instead of the 2 letter iso ids