Manage custom configuration

Hello everybody,

I'm facing a problem that most of you have already had.

In the cloud (or on premise instances), when I want to update a custom config value, I should deploy a package. This could be annoying when you want to do some tests or make it quickly.

I wondered if some of you have the idea of writing a custom page in order to manage the configuration values ? What could you propose ? 

Many thanks and best regards,

Enes

Parents
  • We had the exact same requirement and we, as part of Seven Tunes labs created a Config Manager package which exactly does what you need - we exported the package and provided details in our blog  - check it out - https://seventunes.com/updating-sugarcrm-configuration-on-the-fly/

    The package follows exactly what Dennis has suggested - creates an Admin page which allows you to search/update config. But - I would suggest to use it carefully, maybe change the "DENY_LIST" to "ALLOW_LIST" so that someone doesn't update wrong configuration by mistake. Be extremely cautious if you're using it in production! I would suggest modifying the code to ALLOW_LIST for production uses.

    We've also added a default password which should be sent for every update - that is presently hardcoded in the package, which could be moved to config_override or Admin dbconfig table.

    Please let me know if you have any questions!

  • Hello Neeraja,

    I like the way you did it, searching for a value and editing it according to a password. I could take that as an idea to improve my POC.

    Here is what it look like for the moment:

    I created a specific API which first gets the values excluding from an array the forbidden values, and a second one which saves the values. 

    Thanks for your answer too and best regards !

    Enes

Reply
  • Hello Neeraja,

    I like the way you did it, searching for a value and editing it according to a password. I could take that as an idea to improve my POC.

    Here is what it look like for the moment:

    I created a specific API which first gets the values excluding from an array the forbidden values, and a second one which saves the values. 

    Thanks for your answer too and best regards !

    Enes

Children