Genesys CTI User Forum > Genesys-related Development

Set value on object

(1/1)

daniel_san:
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  :'(

Some help?

daniel_san:
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);

daniel_san:
Update:

I found [b]app.Save()[/b]  ;D

But i have no permissions. Iīll keep you informed :)

cavagnaro:
Great job :)
Good luck and thanks for sharing

daniel_san:
Finally it works (setting the permisions to user)

Navigation

[0] Message Index

Go to full version