In SuiteScript 2.0, if creating a search via Suite...
# suitescript
s
In SuiteScript 2.0, if creating a search via SuiteScript from scratch, what do you put for type for a custom record?
e
screnshaw: You just put the Custom Record ID as a plain String
Copy code
s.create({
  type: "customrecord_my_record",
  ...
})
s
Great. That fixed it. Thanks! In the documentation it says "Use the search.Type enum for this argument" so I thought it had to be in the search.Type options.
e
Yeah, that's definitely a common question I see; no good explanation in the docs. Custom Record examples are typically non-existent