On another topic: in a SS2 service file, I want to...
# suitecommerce
c
On another topic: in a SS2 service file, I want to pull a value from the configuration file, in the past I had done some pretty squirrelly stuff to get these values. Is there a more standard way to do this in 2025?
t
it would be nice but I had a similar thread 2 or 3 months ago and native config value getting was only available in 1.0
as a work around you can pass in the values from the front end since it is better supported there or write your own utility
👏🏻 1
c
So I should post what I did here.
I did a sql query on the SC Configuration record, parsed it and pulled the value out. As an efficiency exercise, I cached the parsed version for subsequent requests.
The request parameters have enough data to filter the SC Configuration records for the correct version.
2|<http://www.somesite.com|www.somesite.com>
I wish there was more documentation on how to modularize ss2.0 files in the backend b/c I'd like to create a library for this type of thing.
👍 1