SharePoint Integrator V4 - Online Help
SharePoint Integrator V4
Questions / Feedback?

AddAttachment Method

Adds an attachment to a specific item of a list.

Syntax

[VB.NET]
Public Sub AddAttachment(ByVal ItemId As String, ByVal FileName As String)
[C#]
public void AddAttachment(string itemId, string fileName);

Remarks

AddAttachment uploads the attachment specified by FileName to the item specified by ItemId.

If AllowLocalFile is set to True and LocalFile is specified, LocalFile will be uploaded. In this case the FileName parameter specifies the name of the file in SharePoint.

If SetUploadStream is called and LocalFile is not set the data held by the stream will be uploaded. In this case the FileName parameter specifies the name of the file in SharePoint.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 4.0.6240.0