Hello everyone, how to save value in website confi...
# suitecommerce
k
Hello everyone, how to save value in website configuration field using suitescript code?
j
@Kuldeep Singh I don’t know if I you can access the configuration directly in SuiteScript, but all the data that is pulled into the configuration is stored as JSON in a record type called “SC Configuration”. If you wanted to manipulate the website configuration through SuiteScript, you might be able to 1. Load that record 2. Get the field with the json in it
custrecord_ns_scc_value
3. Decode the JSON 4. Make your edits 5. Re-stringify the JSON 6. Update that field with the new value 7. Save the record
(This is all hypothetical, of course. I’ve never actually done it)