Set value on object

Hi,

Somebody knows how to set a value on application Object. This object is inside -->Enviroment/Applications.

I know how to read value from configuration trough IconfigManager or IConfigurationService, but i don´t know how to set value :-\

I tried to set value trough IConfigManager but it is setting on Agent object Annex :cry:

Some help?

small explanation

I can read the configuration of the application where the agent is loged with that:

CfgApplication app = _configService.MyApplication;

Inside this object i can read:

app.UserProperties
app.Options

But i can´t update a value inside. I´m trying with set but it´s not working

app.Options.Set(“key”, value);

Update:

I found app.Save() ;D

But i have no permissions. I´ll keep you informed :slight_smile:

Great job :slight_smile:
Good luck and thanks for sharing

Finally it works (setting the permisions to user)