Getting value of a choice field in Business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2018 10:06 PM
Hi,
I am facing some issues in getting the value of choice field in the business rule, I tried using the getValue() and getDisplayValue() in the current object but I am not getting the value in the logs.
I have one separate table and I am using the field in the table using dot walking in the list layout, suppose I have an inciednt table and I have a secondary table called xyz and xyz has a choice field called program, I am dot walking the field program to the incident form using the list layout and I am trying to insert the value into the table xyz from a business rule when the incident form is submitted, in the same incident form I have 3 more reference fields which are coming from the table xyz, but I am getting the values of those reference fields in the business rule and its saving properly, only for this choice field I am not getting the value in the business rule.
Thanks in advance 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2018 10:44 PM
update_ext.u_client = current.getValue('u_task_ext.u_client')); // two close braces here?
update_ext.u_client = current.getValue('u_task_ext.u_client'); //is this field a choice field?
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2018 10:57 PM
update_ext.u_client = current.getValue('u_task_ext.u_client');
only one is there, i have removed the gs.log prefix to that and the closing bracket was for the gs.log. Yes the u_client in the u_task_ext table is a choice field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2018 11:04 PM
you dont need to dot walk just use the below
update_ext.u_client = current.getValue('u_client')); //only reference fields can be dot walked. it is a choice field you dont need dotwalk and it will not work
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2018 11:15 PM
No Luck still its returning Null
but i am using the dotwalking for the other reference fields and its working fine, only for choice its now working.
update_ext.u_io_country = current.u_task_ext.u_io_country;
update_ext.u_program = current.u_task_ext.u_program;
update_ext.u_project = current.u_task_ext.u_project;
all the above code are working as expected, only current.getValue('u_task_ext.u_client') or current.getValue('u_client'); is not working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2018 11:31 PM
can you please share the screen shot of both the tables
Harish