PdcSharepoint.GetFileInfo

From External Bemet Wiki
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