How to contribute to an enumerate field?

When contributing to an enumerated field e.g. CURRENCY (15) does the field value have to be converted from the enumerated value "USD" to its integer value 840 before being contributed or can it be contributed without conversion.

Best Answer

  • Hi @Steven,

    Yes, if all you have as input is the display code of "USD", you will need to convert that into the integer value of 840 before you build your payload. If all your input codes are string representations only of the enumerated value, you can utilize the loaded dictionaries within your application to lookup these codes.

    You can find some reusable code segments within the RFA Examples (Common directory) which includes decoder classes which will help you here.