So i attempted to do a lookup on a custom record t...
# suitescript
c
So i attempted to do a lookup on a custom record type for the first time. Used the CUSTOM_RECORD enum, and got this: "name":"INVALID_RCRD_TYPE","message":"The record type [CUSTOMRECORD] is invalid." Is there a trick here, or did i miss something in the documentation?
b
i personally ignore the enum
c
Is... Is that an option?
b
for custom records, just hardcode the script id of the custom record
c
Yep ID for custom records and I use the record.Type/search.Type for everything else (that has a record type available). There's other things like File I believe tha doesn't have an enum for some reason but is still valid.
c
Well, i was about to ask a few more questions, but marty zigman has a blog post covering the details. thanks!!