PdcSharepoint.SearchFileWithExactName

From External Bemet Wiki
Revision as of 14:43, 28 January 2022 by TC (talk | contribs) (Code example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

SearchFileWithExactName(strFileName As String) As SharepointFileInfo

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, the result will contain the file details.
If unsuccessful, the result will be nothing and PdcApplication.LastError will contain an error message

Code example

Dim sp As PDCEXT.PdcSharepoint = PDC.App.Sharepoint("scriptUploadLocation")
Dim spFileInfo As PDCEXT.SharepointFileInfo = sp.SearchFileWithExactName("test.txt")

Availability

Available since 2021R4