We are currently experiencing intermittent login issues on Community.  The team is actively working on a fix.

How to use Choice field values ​​in a flow

bonsai
Mega Sage

I want to extract the value of a record's choice field in a flow.
In a data pill I get the label value.
Is there a better way to do this?

1 ACCEPTED SOLUTION

@bonsai 

not possible. It's a platform behavior and it will always give choice label and not choice value

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Is there a way to make the output value the internal value of the option?

@bonsai 

not possible. It's a platform behavior and it will always give choice label and not choice value

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@bonsai 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Sylwek
Tera Contributor

Give a try with use .getValue() in Script Editor. It worked in case of assigning value of 'Data type', Choice field on asmt_metric table 🙂 

Sylwek_0-1739184456163.png