RemoveBinaryDataAnnotation Message

banner art

Removes the attachment from the specified annotation (note) instance.

The relevant classes are specified in the following table.

Type Class
Request RemoveBinaryDataAnnotationRequest
Response RemoveBinaryDataAnnotationResponse
Entity annotation

Remarks

To perform this action, the caller must have access rights on the annotation (note) entity instance. For a list of required privileges, see RemoveBinaryDataAnnotation Privileges.

Example

The following code example shows how to use the RemoveBinaryDataAnnotation message.

[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the request object.
RemoveBinaryDataAnnotationRequest remove = new RemoveBinaryDataAnnotationRequest();

// Set the ID of the annotation to have its datafile link removed.
remove.AnnotationId = annotationId;

// Execute the request.
RemoveBinaryDataAnnotationResponse removed = (RemoveBinaryDataAnnotationResponse) service.Execute(remove);

[Visual Basic .NET]
' Set up the CRM Service.
Dim service As New CrmService()
service.Credentials = System.Net.CredentialCache.DefaultCredentials

' Create the request object.
Dim remove As New RemoveBinaryDataAnnotationRequest()

' Set the ID of the annotation to have its datafile link removed.
remove.AnnotationId = annotationId

' Execute the Request
Dim removed As RemoveBinaryDataAnnotationResponse = CType(service.Execute(remove), RemoveBinaryDataAnnotationResponse)

Related Topics

CrmService Messages

© 2007 Microsoft Corporation. All rights reserved.