Skip to Content

How to get RegionCode (values and descriptions) in ABSL?

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 02, 2016 at 04:11 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 04, 2016 at 03:10 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.