Here’s a question from the forums I saw recently:
I need to show Contacts Phone work number in Call list view.
Can anyone help me how to do it?
This commonly comes up, and while there is a way to do this it isn’t upgrade-safe since we need to edit a bean method to do so. However it still is possible by doing two small edits. First, we need to modify the Call bean’s get_list_view_data() method to grab the phone number from the related contact as shown below.
Now, we just need to add the field to the list of fields we will show for the Calls listview in the modules/Calls/metadata/listviewdefs.php as shown below:
With a refresh, the field will now show up in the listview. Notice above that we’ve marked the field as not sortable, since it would be impossible to sort the field since it’s added on after the query is run.