MicrosoftOfficeLiveBusinessContactManager.AddActivity 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.

Add an activity to a contact, company or opportunity. Returns the ID for the new activity.

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

Syntax

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

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

Parameters

Return Value

Type: System.Int32
ID attribute of new Activity

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