PdcSharepoint.UploadFile

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

UploadFile(strFilePath as String) as String

Description

Upload a file into Sharepoint, it will be placed in the root directory of Sharepoint
If successful, the result will contain the itemId for the file in Sharepoint, by which it can be targetted later
If unsuccessful, PdcApplication.LastError will contain an error message

Code example

Dim sp As PDCEXT.PdcSharepoint = PDC.App.Sharepoint("DocRepo")
Dim resultId As String = sp.UploadFile("C:\files\test.txt")

Availability

Available since 2021R4