Decision Builder - bug with Choices? Returning Label instead of Value

Tom Sienkiewicz
Mega Sage

Hey, I created a decision table where one of the Results is a choice: 

TomSienkiewicz_0-1685455633399.png

 

But when I refer to that Choice result from another action in the Flow Designer, the label is passed and not the actual value of that choice.

TomSienkiewicz_1-1685455956415.png

I would expect the value, not the label to be used as runtime value. 

 

Can anyone confirm, is this a bug or am I doing something wrong?

Cheers!

3 REPLIES 3

Dave_H
Tera Contributor

I just came across this same issue today (Vancouver build). It most certainly seems like a bug.

samfindlay94
Tera Contributor

Wanted to share my findings on this, as I too have just come across this issue and have identified a solution. When setting a field you can apply a transform using that "fx" icon. Then select Utilities -> Get item from Name/Values. Then in the "Key" field enter "value", then select Apply. Now the flow should return the Value instead of Label for your choice.

samfindlay94_0-1745479942290.png

 

Casper6060
Mega Sage

@samfindlay94 I tried using your method, it worked with putting value in the Key field, but i was already getting the value returned to me in the version i am running, which is Xanadu Patch 7a. For me i actually wanted the label value as well, i tried a lot of different combos like label, name and so on, but none of them worked, however i found i could get the display value when using script like this:

fd_data._1__make_a_decision.answer.result_elements.u_jira_priority.getDisplayValue();