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
battk
06/10/2021, 9:05 PM
i personally ignore the enum
c
Corey Schwoebel
06/10/2021, 9:05 PM
Is... Is that an option?
b
battk
06/10/2021, 9:05 PM
for custom records, just hardcode the script id of the custom record
c
creece
06/10/2021, 9:09 PM
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
Corey Schwoebel
06/10/2021, 9:13 PM
Well, i was about to ask a few more questions, but marty zigman has a blog post covering the details. thanks!!