Display business rule - accessing a reference field choice value using dot walk returning choic name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2023 03:46 AM - edited 02-07-2023 03:47 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2023 04:23 AM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2023 04:28 AM
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.