Display business rule - accessing a reference field choice value using dot walk returning choic name

Sriram Gutha
ServiceNow Employee
ServiceNow Employee

Hi All,

 

I'm observing an issue in our environments where accessing a choice list field value using dotwalk is returning the choice name instead of the value. Is there any system property that controls this behaviour ? Strangely on few other environments, we get field value when we use the same code.

 

The business rule is on the table: cmdb_ci_rpa_process

Trigger Mode is the field I'm trying to access which is present on the table: sn_rpa_fdn_bot_process_config

 

Attaching screenshots of the business rule and dictionary definition of the field.

2 REPLIES 2

SoniaShridhar13
Giga Guru

Hi @Sriram Gutha  

You can configure business rule on your table to copy data from your reference field to another field.

You can dot walk in business rule for reference field.

Please check example below

 

var req_for = ritm.u_requested_item.u_requested_for.getDisplayValue()

 

Please mark it helpful if it helps...

Sriram Gutha
ServiceNow Employee
ServiceNow Employee

Hi @SoniaShridhar13 Thanks for the info. But I'm not looking for a workaround but would like to understand why the behaviour is different in different instances.