question

Upvotes
Accepted
1 0 2 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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
19k 86 39 63

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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