I checked the ID of my search and it is correct. w...
# general
s
I checked the ID of my search and it is correct. what seems to be missing here?
e
It's not the id of your search but the id of your custom record. What's the id of your custom record?
m
Yeah. Go Customization > Lists, records, Fields > Record Types. There you will find the list with the internal IDs
s
Sorry the internal ID of the record is what I meant. I tinkered around I was able to made it working by using the internal id of the custom record. In my case, it is like 'mycustomrecord' and replace the whole type property with it
j
@suiteExperimenter I had the same issue the other day. you can see my thread in the suitescript group. https://netsuiteprofessionals.slack.com/archives/C29HQS63G/p1610030180459700 you can see my record id in the "type" field below var s = search.create({ type: "customrecord_vendor_invoice", filters: ["custrecord_item_name", "is", mySublistItem], columns: ["custrecord_item_name", "custrecord_shipped_quantity", "custrecord_unit_price", "custrecord_amount"] })
👍 1