question

Upvotes
Accepted
1 0 1 1

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.

treprfarfa-apicontributionsenum
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
9.7k 49 38 60

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea