hey guys, can we access SC Configuration by suites...
# suitecommerce
v
hey guys, can we access SC Configuration by suitescript? also, i wonder if a bundle installation script can do some work in SC Configuration, but i don't think that will work since we have to dynamically select the website and domain while editing SC Configuration of a website. anyone has tried something like this?
g
I think there is a custom record called "sc configuration" which has the JSON as one of it's fields. Just search in global search to find it.
f
As Gordon said, try to load the record. The Name is SC Configuration with the id customrecord_ns_sc_configuration. You will have one per domain so you need to find what is the internalid which you want to use. Regards!
v
Thanks @Gordon Truslove and @Fran . I will try this.
s
I'm pretty sure you can just add Configuration as a dependency and it works just the same
v
The thing is that the script i'm working on is 2.0 Suitelet Service, it does not reside in my SC extension.
s
OK, well my advice is still useful! Look up the SuiteScript we have written in SCA for how we get this record. SspLibraries/SuiteScript/Configuration.js. It shows we search for and load the script
v
Okay, will definitely look into this. Thanks, Steve. :)