MicrosoftOfficeLiveBusinessContactManager.GetContactsBasic Method

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Returns the list of contact names and IDs in the specified contact group that match the search term.

Namespace:  WebBCM
Assembly:  OfficeLive (in OfficeLive.dll)

Syntax

'Declaration
<SoapHeaderAttribute("AuditHeaderValue")> _
<SoapHeaderAttribute("UserHeaderValue")> _
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/officelive/soap/GetContactsBasic", RequestNamespace := "http://schemas.microsoft.com/officelive/soap/",  _
    ResponseNamespace := "http://schemas.microsoft.com/officelive/soap/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetContactsBasic ( _
    ContactGroup As String, _
    SearchTerm As String, _
    IsAscending As Boolean _
) As ContactBasic()
'Usage
Dim instance As MicrosoftOfficeLiveBusinessContactManager
Dim ContactGroup As String
Dim SearchTerm As String
Dim IsAscending As Boolean
Dim returnValue As ContactBasic()

returnValue = instance.GetContactsBasic(ContactGroup, _
    SearchTerm, IsAscending)
[SoapHeaderAttribute("AuditHeaderValue")]
[SoapHeaderAttribute("UserHeaderValue")]
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/officelive/soap/GetContactsBasic", RequestNamespace = "http://schemas.microsoft.com/officelive/soap/", 
    ResponseNamespace = "http://schemas.microsoft.com/officelive/soap/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public ContactBasic[] GetContactsBasic(
    string ContactGroup,
    string SearchTerm,
    bool IsAscending
)

Parameters

  • ContactGroup
    Type: System.String
    String that is the Name property for the ContactGroup. Default groups are named:
    • Lead or Prospect

    • Customer

    • Vendor

    • Employee

    • Newsletter Subscriber

    • This parameter must be set to NULL to get all contacts.

  • SearchTerm
    Type: System.String
    String on which to filter this search.
    This parameter must be set to NULL to get all contacts.
  • IsAscending
    Type: System.Boolean
    Boolean to sort in ascending order, rather than the default descending order.

Return Value

Type: []
Array of ContactBasic objects

Remarks

Fields available to match are:

  • ContactFullname

  • WorkPhone

  • CellPhone

  • HomePhone

  • Business2Number

  • PagerNumber

  • WorkFax

  • OtherFaxNumber

  • Email

  • Email2

  • IMAddress

Examples

For an interactive example of this method, download the Contact Manager Web service examples tool from the MSDN Code Gallery.

See Also

Reference

MicrosoftOfficeLiveBusinessContactManager Class

MicrosoftOfficeLiveBusinessContactManager Members

WebBCM Namespace