a way to store environment variable for custom package

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

Parents Reply
  • I wouldn't rely on it. The package is, with normal use, not retrievable by the user since the package is stored in the upload directory (if i'm correct). Only way to retrieve your package is to download a backup or gain direct access to filesystem of the instance (by which the retrieval of your key, if that is happening, the least of your concerns)  On the other hand if you provide the package on a publicly downloadable place I would never set the key in the package itself.

Children