RemoveBinaryDataSalesLiteratureItem Message
Removes the attachment from the specified sales literature item (document) instance.
The relevant classes are specified in the following table.
Type | Class |
Request | RemoveBinaryDataSalesLiteratureItemRequest |
Response | RemoveBinaryDataSalesLiteratureItemResponse |
Entity | salesliteratureitem |
Remarks
To perform this action, the caller must have access rights on the sales literature item (document) entity instance. For a list of required privileges, see RemoveBinaryDataSalesLiteratureItem Privileges.
Example
The following code example shows how to use the RemoveBinaryDataSalesLiteratureItem message.
[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Create the request object.
RemoveBinaryDataSalesLiteratureItemRequest remove = new RemoveBinaryDataSalesLiteratureItemRequest();
// Set the ID of the literature to remove
remove.SalesLiteratureItemId = new Guid("2B951FBC-1C56-4430-B23B-20A1349068F3");
// Execute the request.
RemoveBinaryDataSalesLiteratureItemResponse removed = (RemoveBinaryDataSalesLiteratureItemResponse) 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 RemoveBinaryDataSalesLiteratureItemRequest()
' Set the ID of the literature to remove
remove.SalesLiteratureItemId = New Guid("2B951FBC-1C56-4430-B23B-20A1349068F3")
' Execute the request.
Dim removed As RemoveBinaryDataSalesLiteratureItemResponse = CType(service.Execute(remove), RemoveBinaryDataSalesLiteratureItemResponse)
Related Topics