Trying to create Landed Cost Template records via ...
# suitescript
r
Trying to create Landed Cost Template records via script, but getting error:
Copy code
SCM_NON_UI_SCRIPT_CONTEXT: This record can only be created or edited through a user interface.
Has anyone faced this? Any workaround?
c
Landed Cost Templates are records in NetSuite that have UI restrictions. There is no direct workaround using SuiteScript. You will need to create them manually through the interface or use Mass Update if you need to create several similar templates. Some users first build the templates through the UI and then use scripts to fill in the actual landed cost records that refer to those templates.
r
Thank you for confirming
y
As per NetSuite there is no direct work around. However we can do it using DOM to post form as UI