PdcSharepoint.GetFileInfo

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

Declaration

GetFileInfo(strItemId As String) As SharepointFileInfo

Description

Get details about the file in Sharepoint targetted by strItemId.
If successful, the result will contain the file details.
If unsuccessful, PdcApplication.LastError will contain an error message.

Code example

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

Availability

Available since 2021R4