UpdateAttachment
Replaces the content of an existing file attachment on a SharePoint list item while preserving the filename and list item reference. Useful for updating attachment content without deleting and re-adding the file.
Input
| Name | Type | Required | Accepts Input Streams | Description |
| ListTitle | String | True | False | The title of the SharePoint list containing the item whose attachment will be updated. Helps identify the target list. |
| ItemId | String | True | False | The unique identifier of the list item whose attachment will be updated. Ensures the replacement targets the correct item. |
| FileName | String | True | False | The full name (including extension) of the existing attachment to replace. For example: 'report.pdf'. The file must already exist on the list item; the content will be overwritten in place. |
| InputFilePath | String | False | False | The full local file path of the new content to upload. Required unless providing file content directly via the Content parameter. |
| Content | String | False | True | The new file content as an InputStream, used when InputFilePath is not specified. Provides an alternative method for supplying replacement content. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the attachment update operation was successful. Returns 'true' when the content was replaced successfully, 'false' otherwise. |