https://netsuiteprofessionals.com logo
#suitescript
Title
# suitescript
m

Marwan

04/26/2022, 8:32 AM
Hi all, just want to make sure I am not missing something.... Modifying a custom list on the fly (programmatically) is not possible in NS, right? If I want to do something like that I have to use a custom record, is that correct?
b

battk

04/26/2022, 8:47 AM
its not officially supported, but there are actually 2 ways of modifying custom lists
m

Marwan

04/26/2022, 8:48 AM
How? Can I add to it?
b

battk

04/26/2022, 8:48 AM
you can treat it like you would a normal custom record and just use record.create using the script id of the custom list
m

Marwan

04/26/2022, 8:49 AM
Hmm, got it, didn't know that. Thanks ❤️
b

battk

04/26/2022, 8:50 AM
or you can treat the list itself like a custom record type and load it using record.load with a type of customlist and the id as the internal id of the custom list
🙌 1