PdcSharepoint.SearchFilesStartingWithName: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 11: | Line 11: | ||
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") | ||
If Not IsNothing(spFileInfoList) Then | |||
For i As Integer = 0 To spFileInfoList.Count - 1 | |||
Dim spFileInfo As PDCEXT.SharepointFileInfo = spFileInfoList.Items(i) | |||
MsgBox(spFileInfo.FileName) | |||
Next | |||
End If | |||
</source> | </source> | ||
== Availability == | == Availability == | ||
Available since 2021R4 | Available since 2021R4 |
Latest revision as of 13:55, 28 January 2022
Declaration
SearchFilesStartingWithName(strName As String) As SharepointFileInfoList
Description
If successful, the result will contain a SharepointFileInfoList from which all the files can be accessed.
If unsuccessful, the result is nothing
Code example
Dim sp As PDCEXT.PdcSharepoint = PDC.App.Sharepoint("scriptUploadLocation")
Dim spFileInfoList As PDCEXT.SharepointFileInfoList = sp.SearchFilesStartingWithName("Beme")
If Not IsNothing(spFileInfoList) Then
For i As Integer = 0 To spFileInfoList.Count - 1
Dim spFileInfo As PDCEXT.SharepointFileInfo = spFileInfoList.Items(i)
MsgBox(spFileInfo.FileName)
Next
End If
Availability
Available since 2021R4