Website logo
Go To WebsiteAppexchange
Home
Salesforce
HubSpot
Web App
API Reference
Navigate through spaces
⌘K
Table Of Contents
Quick Starts
Features
Widgets
Flow Actions
Flow Templates
Platform Events
Tutorials
How to integrate AWS S3 bucket with CloudFiles
How to make existing Salesforce records work with CloudFiles
Copy Salesforce files to SharePoint
Apex
FAQs
Support
Docs powered by Archbee
Apex
CloudFiles Client

Delete Attachment

This method can be used to disconnect a file/folder from a Salesforce record. CloudFiles "connects" a file/folder to a Salesforce record by creating a "attachment" object. This method deletes the attachment

Apex
global static void deleteAttachments(
  List<Types.DeleteAttachmentInput> attachmentInputs,
  String library,
  String runAs
)


Parameters

  1. attachmentInputs - List of Types.DeleteAttachmentInput
  2. linbrary - Type of Library. Example - sharepoint
  3. runAs - Email Id of the user on whom behalf the function should run. If you want to run the action as automation user, supply integrationUser

Return Type

This method doesn't return anything





Updated 20 Nov 2023
PREVIOUS
Create Attachments
NEXT
Create Links
Docs powered by Archbee
TABLE OF CONTENTS
Parameters
Return Type
Docs powered by Archbee