PdcSharepoint.SearchFilesStartingWithName: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == SearchFilesStartingWithName(strName As String) As SharepointFileInfoList == Description == Upload a file into Sharepoint, it will be placed in the direc..."
 
No edit summary
Line 11: Line 11:
<source lang="vb">
<source lang="vb">
Dim sp As PDCEXT.PdcSharepoint = PDC.App.Sharepoint("scriptUploadLocation")
Dim sp As PDCEXT.PdcSharepoint = PDC.App.Sharepoint("scriptUploadLocation")
Dim spFileInfoList As PDCEXT.[[SharepointFileInfoList]] = sp.SearchFilesStartingWithName("Beme")
Dim spFileInfoList As PDCEXT.SharepointFileInfoList = sp.SearchFilesStartingWithName("Beme")
</source>
</source>


== Availability ==
== Availability ==
Available since 2021R4
Available since 2021R4

Revision as of 13:02, 28 January 2022

Declaration

SearchFilesStartingWithName(strName As String) As SharepointFileInfoList

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 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 spFileInfoList As PDCEXT.SharepointFileInfoList = sp.SearchFilesStartingWithName("Beme")

Availability

Available since 2021R4