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

"contact_and_person_freetextsearch" MDO List

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

Provider for selecting a Contact or a Person Does keyword matching and scoring across multiple string fields. Checks name, department, soundex fields.

Additional: Name = Person or PersonContact or ContactPersonAddContact = true or false - add a contact item for person itemsExpandContact = TRUE or false - add all persons for a contact itemsSkipRetired = TRUE or false - skip retired personsContactId = 123 - boost persons belonging to contact id in results rank

User's own contacts, recently added + modified contacts, contacts modified or created by user. Matches on word boundaries or at start of field are scored extra highly.

Returns contact or person items: Id = contact_id or person_id, ExtraInfo = "contact_id"=contact_id, Type = "Contact" or "Person", StyleHint = "stop"

Stopped contacts are marked with stylehint = "stop" (but item.deleted = false)

Implemented by the ContactAndPersonListFreetextSearchProvider class. The name of the MDO list is 'contact_and_person_freetextsearch'.

Additional Attributes

Description Name Example Value
Person, PersonContact, ContactPerson Name PersonContact
Add Contact items for person matches AddContact True
Add all persons for a contact match ExpandContact True
Skip retired employees skipRetired False
Boost scores on this contact to top contactId 123

Sample Request

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

Sample Code

var listProvider = SuperOffice.CRM.Lists.SoListProviderFactory.Create("contact_and_person_freetextsearch", 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

  • "contact_and_person_freetextsearchheadings"
  • "contact_and_person_freetextsearchheadingswithallitem"
  • "contact_and_person_freetextsearchheadingswithallitemwithnoselection"
  • "contact_and_person_freetextsearchheadingswithnoselection"
  • "contact_and_person_freetextsearchwithallitem"
  • "contact_and_person_freetextsearchwithallitemwithnoselection"
  • "contact_and_person_freetextsearchwithnoselection"
In This Article
  • Additional Attributes
  • Sample Request
  • Sample Code
  • Sample Output
  • Related MDO Lists
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top