I'm under the impression that a script cannot be u...
# suitescript
a
I'm under the impression that a script cannot be used to create an inventory worksheet (it's not in the list of SS 2.0 Type enums). Can anyone confirm this?
s
I havent gotten to the line setting, but I was able to create a record in the console with
record.create({type: 'inventoryworksheet' })
a
interesting. I should probably look at an existing record to see how it handles "lines".
s
Yep that is how I would approach as well.
Looks like sublsit is called
invt
, appears to load as well with
record.load
s
I don't think the
record.Type
enum is completely documented.
b
there are lots of record types in netsuite, with varying degrees of support
you can see the list in your account by running in the console
Copy code
nsapiInitRecords();
console.log(nsRecordTypes)
👀 1
officially supported ones tend to show up in SuiteScript Supported Records and have their scriptable boolean property set to true
if they dont appear in the supported list, or dont have their scritable field set to true, then they probably are not officially supported
though that doesnt mean they wont work
a
thanks @Sandii @stalbert @battk This is all really helpful!
b
not especially me, what I shared is only for evil
💯 1
😂 1
a
@Automatech Not sure if Inventory Worksheets were fixed in recent releases but those were pretty broken before, make sure to review all the documentation related to Worksheets and test multiple use cases before you jump into this journey.
👍 1