If you want to launch the creation of Folders and SubFolders from a Flow. This is possible with this Flow Action.
Parameters:
- DataSource ID: DataSource required to resolve possible mergefields in the “Library URL” and “Path to directory”
- Library URL: URL to the SharePoint Site and Library. The field can have mergefields but that is not required. eg “https://cloudcrossingautomation.sharepoint.com/sites/[[!Site_Name__c!]]/Shared Documents”
- Path to directory: Path to the initial directory. In the example below, we have a formula field on the Opportunity that will calculate the specific path for each record. So we get the Opportunity data from the “Get Opp Data” and use that in the Flow field
- Record Id: Salesforce Record Id
- Subfolders to create: the folders and subfolders can be written out as follows:
- Folders have to be comma “,” separated
- Subfolders must define the path via a forward slash “/” separator
- The following “folder1,folder2,a/b/c,a/b/d” wil create:
- 3 folders:
- “folder1”
- “folder2”
- “a”
- subfolders
- “b” under folder “a”
- “c” under folder “b”
- “d” under folder “b”
- 3 folders: