In SuiteScript 2.0, if creating a search via SuiteScript from scratch, what do you put for type for a custom record?
e
erictgrubaugh
06/01/2017, 1:44 PM
screnshaw: You just put the Custom Record ID as a plain String
Copy code
s.create({
type: "customrecord_my_record",
...
})
s
screnshaw
06/01/2017, 1:50 PM
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
erictgrubaugh
06/01/2017, 3:24 PM
Yeah, that's definitely a common question I see; no good explanation in the docs. Custom Record examples are typically non-existent