PdcSharepoint.GetFileInfo: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == GetFileInfo(strItemId As String) As SharepointFileInfo == Description == Get details about the file in Sharepoint targetted by strItemId If successful,..." |
No edit summary |
||
Line 3: | Line 3: | ||
== Description == | == Description == | ||
Get details about the file in Sharepoint targetted by strItemId | Get details about the file in Sharepoint targetted by strItemId. <br> | ||
If successful, the result will contain the file details | If successful, the result will contain the file details. <br> | ||
If unsuccessful, [[PdcApplication.LastError]] will contain an error message | If unsuccessful, [[PdcApplication.LastError]] will contain an error message. <br> | ||
== Code example == | == Code example == |
Latest revision as of 12:46, 28 January 2022
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