PdcSharepoint.UploadFile: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
<source lang="vb"> | <source lang="vb"> | ||
Dim sp As PDCEXT.PdcSharepoint = PDC.App.Sharepoint(" | Dim sp As PDCEXT.PdcSharepoint = PDC.App.Sharepoint("scriptUploadLocation") | ||
Dim resultId As String = sp.UploadFile("C:\files\test.txt") | Dim resultId As String = sp.UploadFile("C:\files\test.txt") | ||
</source> | </source> |
Revision as of 12:41, 28 January 2022
Declaration
UploadFile(strFilePath as String) as String
Description
Upload a file into Sharepoint, it will be placed in the directory targetted by the name passed to the constructor (pdcApplication.Sharepoint)
If successful, strItemId 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("scriptUploadLocation")
Dim resultId As String = sp.UploadFile("C:\files\test.txt")
Availability
Available since 2021R4