Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
This will add columns and search fields. I added to App_Start of Global.asax but you could put in an intialization module as well.
var listViewProfile = ListViewProfile.Load("Organization", "", "EntitySelect"); if (listViewProfile == null) { return; } if (listViewProfile.ColumnsUI.Contains("OrganizationType")) { return; } AddMetaFieldsToEntitySelectListViewProfile(listViewProfile, new[] { "OrganizationType" }, new[] { "Description" }); private static void AddMetaFieldsToEntitySelectListViewProfile(ListViewProfile lvp, IEnumerable<string> columns, IEnumerable<string> searchFields) { foreach (var name in columns) { lvp.FieldSet.Add(name); lvp.ColumnsUI.Add(new ColumnProperties(name, "200px", string.Empty)); } lvp.FieldSet = lvp.FieldSet.Intersect(searchFields).ToList(); ListViewProfile.SaveSystemProfile("Organization", "EntitySelect", PrincipalInfo.CurrentPrincipal.GetContactId(), lvp); }
Hi!
When I'm trying to change the parent organization for a contact I get a "search organization" dialog. It looks like it only searches for the organization name. Is it poosible to extend the search to search for more parameters? Or extend the search result to show more columns from the organization?
Thanks!
/Kristoffer