Hi Carlos

thanks for your answer. 

I am not aware of a specific syntax in YAML for hash. 
Fact is, that if i try using a YAML file (using the source-path option) is working

[otrs@bss-otrs bin]$   ./otrs.Console.pl  Admin::Config::Update --setting-name Ticket::Frontend::AgentTicketCompose###DynamicField --source-path ./example.yaml                                 
Updating setting value...

Done.
[otrs@bss-otrs bin]$ cat example.yaml
AgentID: 1

but i try to use the value directly, it isn't. I am sure it is a syntax problem, but i tried YAML/PERL approaches to provide that parameter as a hash and i keep getting this error.

[otrs@bss-otrs bin]$  ./otrs.Console.pl  Admin::Config::Update --setting-name Ticket::Frontend::AgentTicketCompose###DynamicField --value 'AgentID: 1'
Updating setting value...

ERROR: OTRS-otrs.Console.pl-Admin::Config::Update-15 Perl: 5.16.3 OS: linux Time: Mon Jul  2 13:53:29 2018

 Message: Setting Ticket::Frontend::AgentTicketCompose###DynamicField Effective value is not correct: Its not a hash!

 Traceback (25114):
   Module: Kernel::System::SysConfig::ConfigurationDeploy Line: 3483
   Module: Kernel::System::Console::Command::Admin::Config::Update::Run Line: 170
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 80
   Module: ./otrs.Console.pl Line: 38

Error: Deployment failed!




it would be great if you can provide an example using the "--value" option.

Tx/Gracias!
Carlos.




On Sat, Jun 30, 2018 at 3:07 AM, Carlos Rodríguez <carlos.rodriguez@otrs.com> wrote:
Hi Carlos,

Sure, the answer is in the help

 [--source-path ...]            - Specify the source location of the setting value YAML file.
 [--value ...]                  - Specify single line setting value.

You need to set your hash as a YAML structure and put it into a file.

((enjoy))

Carlos Rodríguez




On Jun 29, 2018, at 6:00 PM, carlos calvo <ccvillalain@gmail.com> wrote:

Hi!

i am running OTRS 6.0.8 and trying to setting things up over the console utility, otrs.Console.pl
I would like to configure a value in one of the parameters " Ticket::Frontend::AgentTicketCompose###DynamicField", 
but OTRS keeps complaining about the value type not being a hash.
Does anyone has an idea how to provide a hash value over this interface. I've tried several options but none did really worked out.


[otrs@bss-otrs bin]$   perl    ./otrs.Console.pl  Admin::Config::Update --setting-name Ticket::Frontend::AgentTicketCompose###DynamicField --value "(AgentID => '1')"
Updating setting value...
ERROR: OTRS-otrs.Console.pl-Admin::Config::Update-15 Perl: 5.16.3 OS: linux Time: Sat Jun 30 00:50:06 2018
 Message: Setting Ticket::Frontend::AgentTicketCompose###DynamicField Effective value is not correct: Its not a hash!
 Traceback (31978):
   Module: Kernel::System::SysConfig::ConfigurationDeploy Line: 3483
   Module: Kernel::System::Console::Command::Admin::Config::Update::Run Line: 170
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 80
   Module: ./otrs.Console.pl Line: 38
Error: Deployment failed!



Br&Tx
Carlos.
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs


---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs