Value List output via ASI

I have created a value list and included this as a column in a truth table.

The truth table has been exposed via an ASI using the "Publish As" functionality.

However, it seems that the JSON generated in the response includes the database values of the enumeration (e.g. 1, 2, 3...). This is not particularly interesting when sharing information with an external system.

Is there any way to either: force the ASI to send the string value

OR

Manually set the database values so that they can be meaningful idents?


ver: 8.12.1.71934

Comments

  • Good morning Haim,

    Could you provide screenshots for described behavior?

    Also, could you clarify what ASI is?

    Thank you!

    Best,

    Levi | Decisions Support

  • Sorry, it's termed API Service.

    The truth table looks like this:



    Below I have copied an example Decisons generated API for a truthtable.

    The Receivers and Channels have both been defined as Value Lists. Note that they are also defined as being a list datatype on the truth table, hence there are two values.

    As can be seen, the values are represented by the database values of the Value Lists, which are integers. I would prefer to have the Display values (strings).



  • Thank you for providing additional Context Haim,

    A way that you could accomplish this, is by creating a flow that would replace the enumeration with whatever you'd like AFTER the service method has already been called, and then call the flow over the API.

    Best,

    Levi | Decisions Support

Sign In or Register to comment.