How do I find the `typeId` of the `Customer List R...
# general
b
How do I find the
typeId
of the
Customer List Record Type
(any help is greatly appreciated)
b
i think this is a suitetalk question so you would use the getCustomizationId operation
If you just want to hardcode it, find the list definition in the ui and use id in the url
b
Basically I am looking for the
typeId
of a customer list
@battk, yes I would like to hardcode it, I just cant find the value for 'Customer'
b
if ifs the native customer record, then you are looking for "_customer"
though hopefully whatever tool you used has an enumeration value that you are supposed to use
b
@battk I am just writing it in c# accessing the wsdl
@battk I will give it a try and see if this is the typeId. Btw, thank you very much for answering.
b
im not sure what you are trying to do, but usually you only need to set the internal id or external id of a RecordRef when setting a field.
b
//A list object to store all the customFieldRefs List<CustomFieldRef> customFieldRefList = new List<CustomFieldRef>(); //List or Record Type reference SelectCustomFieldRef selectCustomFieldRef = new SelectCustomFieldRef(); selectCustomFieldRef.scriptId = Constants.ON_BEHALF_OF_LIST; ListOrRecordRef listOrRecordRef = new ListOrRecordRef(); listOrRecordRef.externalId = onBehalfOf.externalId; listOrRecordRef.typeId = "customlist_atlas_cust_type"; // "<internalId of the List Record Type in Netsuite>"; selectCustomFieldRef.value = listOrRecordRef; customFieldRefList.Add(selectCustomFieldRef); invoice.customFieldList = customFieldRefList.ToArray();
listOrRecordRef.typeId = "customlist_atlas_cust_type";
// "<internalId of the List Record Type in Netsuite>";
that is where i need to set that this is a customer type
in an invoice we have a custom field. On behalf of. it is just a dropdown of all the customers in the system
@battk but i am accessing it through the wsdl
b
im generally rusty on suitetalk, but i don't think you actually need to set the typeId on RecordRefs used for values. NetSuite already knows what type of values the select field accepts. It only needs to know which one, which is given by the externalid