MicrosoftOfficeLiveBusinessContactManager.GetActivities 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 activities associated with a contact, company, or opportunity.

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

Syntax

'Declaration
<SoapHeaderAttribute("AuditHeaderValue")> _
<SoapHeaderAttribute("UserHeaderValue")> _
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/officelive/soap/GetActivities", RequestNamespace := "http://schemas.microsoft.com/officelive/soap/",  _
    ResponseNamespace := "http://schemas.microsoft.com/officelive/soap/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetActivities ( _
    ParentListType As ParentListType, _
    ParentListItemId As Integer, _
    SortType As SortType, _
    MaxResultCount As Integer _
) As Activity()
'Usage
Dim instance As MicrosoftOfficeLiveBusinessContactManager
Dim ParentListType As ParentListType
Dim ParentListItemId As Integer
Dim SortType As SortType
Dim MaxResultCount As Integer
Dim returnValue As Activity()

returnValue = instance.GetActivities(ParentListType, _
    ParentListItemId, SortType, MaxResultCount)
[SoapHeaderAttribute("AuditHeaderValue")]
[SoapHeaderAttribute("UserHeaderValue")]
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/officelive/soap/GetActivities", RequestNamespace = "http://schemas.microsoft.com/officelive/soap/", 
    ResponseNamespace = "http://schemas.microsoft.com/officelive/soap/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public Activity[] GetActivities(
    ParentListType ParentListType,
    int ParentListItemId,
    SortType SortType,
    int MaxResultCount
)

Parameters

  • ParentListItemId
    Type: System.Int32
    Integer that is the ID property of the item within the parent list type. The example below is getting the activities related to the Contact object with the ID of "23".
  • MaxResultCount
    Type: System.Int32
    Integer for maximum number of activities to be returned.

Return Value

Type: []
Array of Activity objects

Remarks

Activities related to the selected item in the list (i.e. the Contact with ID of 23) are returned in descending order by the ID property of the activities.

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