(Migrated) How to use dictionary

(This message has been automatically imported from the retired mailing list)

Dear Zato’s Team,

I cannot find how to get value defined in Data dictionary in the code in a
simple way.

I have following deffinition in my dictionary (attached in the file
dict.png)
and I would like to get this value in my Service implementation.

I have only found how to get translation (described in the Docs - please
find attached file translate.PNG).

Unfortunately, I cannot find similar tool for dictionaries.

I will be really grateful for your help.

Thank you in advance.

–=20
Pozdrawiam / BRegards,

Jan Skowro=C5=84ski

Direct phone: +48 505 018 351
E-mail: jan.skowronski@dsr.com.pl

–=20

On 04/02/15 20:41, Jan Skowroński wrote:

I cannot find how to get value defined in Data dictionary in the code in
a simple way.

Hello,

you need to call dedicated admin API services to obtain it:

https://zato.io/docs/public-api/details/zato.kvdb.data-dict.dictionary.get-key-list.html

https://zato.io/docs/public-api/details/zato.kvdb.data-dict.dictionary.get-system-list.html

Here’s the gist of it assuming the entries are:

System:Key:Value
System:Key:Value2
System:Key2:Value2