Hi,
I need to find a RegionCode (Data Type) using the description, for example if I have 'Liverpool' I want to get its code 'LV'.
Is there any way to do this using scripting?
I know that using the QueryCodeListIn Web Service I can get all the values for a specific country but I would like to avoid this workaround.
Thanks,
Alejandro Cordero.
Hello Alejandro,
I've never found a way to achieve it. I think it's not possible.
I found only the opposite operation available, to get a description based on a value.
Regards,
Alexandre.
I am not sure if I understood your question correctly, But if you have liverpool and you want to get its code then you can use foreach loop in ABSL and use getDescription function for the element and compare 'Liverpool'. If it matches then use your element.content to get its code.
But I am not sure if I understood your question. Sorry in advance!
Add a comment