FlowAction_SearchForItems

This method mimcs the sFiles API method, “searchForItems”. It assumes that the named credential to use is to be found in the “SharePoint Object Settings” Custom Metadata type (of the objectSettingsLabel if one is specified) or the “SharePoint Settings” Custom Metadata type. The Site Id and Document Library Id are assumed to come from the SharePoint Object Settings or SharePoint Settings, but can be overriden by the siteId and documentLibraryId parameters.

See searchForItemsInput

Methods

global static List<FlowActionPayload_List_SPID> search(List<searchForItemsInput> items)

INVOCABLEMETHOD

Classes

searchForItemsInput

Fields

global DocumentLibraryOverrideIdString

AURAENABLED OTHER

(Optional) Override the Document Library Id in the SharePoint Object Setting.

global ObjectSettingsLabelString

AURAENABLED INVOCABLEVARIABLE

The label of the SharePoint Object Setting Custom Metadata used to complete the action.

global SearchSubfoldersBoolean

AURAENABLED OTHER

(Optional) Boolean of whether to search the subfolders of the given SharePoint Folder Id. If false, sFiles will only return search results of items directly inside the folderId. If true, sFiles will return all matching results from all folders nested in the folderId. The default value is false.

global SearchTermString

AURAENABLED INVOCABLEVARIABLE

The keyword to search for a file or folder. NOTICE: The searchForItems function will search for this keyword not just in the name, but across all SharePoint columns.

global SharePointFolderIdString

AURAENABLED OTHER

(Optional) A specific SharePoint folder Id the flow action should search.

global SiteOverrideIdString

AURAENABLED OTHER

(Optional) Override the Site Id set in the SharePoint Object Setting.