I’m sure I’ve seen the documentation for this befo...
# suitescript
s
I’m sure I’ve seen the documentation for this before, but no matter what I search I can’t find it now. We are adding a new Customer form, and making it the default form, but we have two 2.1 Restlet scripts that create customers (using record.create), and we ned to use the current/old customer form for those scripts instead. I thought there was a way to set the custom form in defaultValues when creating the customer record, but I can’t find any examples of that in SuiteAnswers. I assume it’s going to be something like this:
record.create({‌ type: record.Type.CUSTOMER, isDynamic: true, defaultValues: {‌ customform: 123 } })
Is that correct?
1
e
It is. See the first row of the table
👍 1
s
thanks, good to have the documentation too, bookmarking it now
When I search for
customform
or even
N/record Default Values
, the results I get back are almost totally worthless, and don’t include that particular page in the API reference (even though that’s the sub-header on the page). There’s definitely something not right with the help center search, it’s just frustratingly broken sometimes.
👎 2
e
@scottvonduhn I'm not sure if this is globally true for all the docs but I have noticed if I search for something in google for example, default values Netsuite, then one of the first results displayed are from the domain https://docs.oracle.com/ and you can see there the information that earlier was only available if you were logged in.
s
@eminero thanks for the tip! I just tried Google, and both searches found the correct API page as the first result. Now that the docs are available without login, this is a huge improvement. Guess I’ll be starting all my help searches from google directly now. Sad that Oracle can’t get an internal search working right, though
🤝 1
e
I totally agree! Glad it was helpful