• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

"combinedcontactpersonsearch" MDO List

Some tooltip text!
• 2 minutes to read
 • 2 minutes to read

Consider using the ContactAndPersonListFreetextSearchProvider/"contact_and_person_freetextsearch" MDO list instead of this one.

Provider for selecting a Person or a Contact, including search on contacts that match as well as persons. this provider will return a mix of contact and person records. The type is indicated in the Type property of the item, and the contact ID is always in the extraInfo.

Searchs contact and person tables for matches, in addition to the contact search of the base class "contact" search.

Returns a mix of Persons with Contact and Person without contact items sorted by relevance: own contacts, recently added or updated are more relevant.

id = contact or person_id,

Name = contact.name + department or person first+last name (contact name + department)

ExtraInfo = contact_id,

Type = "Person", "Contact"

IconHint = "Personwithcontact", "contact", "Personwithoutcontact"

Implemented by the CombinedContactPersonSearchProvider class. The name of the MDO list is 'combinedcontactpersonsearch'.

Sample Request

GET /api/v1/MDOList/combinedcontactpersonsearch
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: *

Sample Code

var listProvider = SuperOffice.CRM.Lists.SoListProviderFactory.Create("combinedcontactpersonsearch", forceFlatList: true);
foreach (var item in listProvider.RootItems) {
    Console.WriteLine("{0} {1} {2} {3}", 
         item.Id, ResourceManager.ParseInlineResources(item.Name), item.StyleHint, item.ExtraInfo);
}

Sample Output

Id Name StyleHint ExtraInfo
2 Example

Related MDO Lists

  • "combinedcontactpersonsearchheadings"
  • "combinedcontactpersonsearchheadingswithallitem"
  • "combinedcontactpersonsearchheadingswithallitemwithnoselection"
  • "combinedcontactpersonsearchheadingswithnoselection"
  • "combinedcontactpersonsearchwithallitem"
  • "combinedcontactpersonsearchwithallitemwithnoselection"
  • "combinedcontactpersonsearchwithnoselection"
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top