Hi Everyone,
I'm wondering if there is a way to store any environment variable in SugarCRM for my custom package?
For example, I have a API key in my package, and I don't want to write the string directly in my package.
Thanks a lot!
Sophie
Hi Everyone,
I'm wondering if there is a way to store any environment variable in SugarCRM for my custom package?
For example, I have a API key in my package, and I don't want to write the string directly in my package.
Thanks a lot!
Sophie
Yes, you're right, on "after save", it will send data to my URL which has an API Key.
Thank you for your suggestion
I haven't seen it stated here but you can also access the config table in sidecar if the category is a module name.
var config = app.metadata.getModule('Accounts', 'config'); if(!_.isEmpty(config.ns_url)) { url = config.ns_url; }
Note that you need to repair and rebuild for the client to get new values added to the config table.