How to fetch worker code by x++

Hi all,

i have a requirement to fetch the worker code:

in payment journal lines->financial dimension->worker code is assigned and i want to fetch this value by code.

any suggestions pls.

And what’s the problem? Maybe you don’t know how to get values of default dimensions (being worker or any other dimension). Or maybe you have some worker-specific problem that you forgot to explain.