• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

deleteAttachment

Some tooltip text!
• 1 minute to read
 • 1 minute to read

Description

Deletes an attachment. Only attachments not attached to any other entities in Service can be deleted. That way only stray attachments can be deleted, hence we don’t need to verify the validity of the contact.

In parameters

Parameter Description

| attachmentId | The ID of the attachment |

Out parameters

Parameter Description
errorCode See list of codes

Example

string sessionKey;

customer.customerService custService = new customer.customerService();

if(custService.login("test","test", out sessionKey) == "0")
{
  string ret = custService.deleteAttachment("10");
  if(ret == "0")
    cout << "Hip hurray";
  else
    cout << "Oh no";
}
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top