website logo
Go To WebsiteAppexchange
Home
Salesforce
HubSpot
Web App
API Reference
Navigate through spaces
⌘K
Table Of Contents
Quick Starts
Features
Widgets
Flow Actions
Flow Templates
Platform Events
Tutorials
How to make existing Salesforce records work with CloudFiles
Copy Salesforce files to SharePoint
Apex
FAQs
Support
Docs powered by archbee 

Create Folders

Creates folders in external storage like SharePoint, Google Drive etc.

Apex
|
global static List<Resource> createFolders(
  List<Types.CreateFolderInput> inputs,
  String libraryId,
  String runAs
)


Parameters

  1. inputs - List of Types.CreateFolderInput
  2. libraryId - Type of library. Example - sharepoint. You can get this value from Content Library
  3. runAs - Email Id of the user on whom behalf the function should run. If you want to run the action as automation user, supply integrationUser

Return Type

List of Resource objects

Example



Apex
|
List<cldfs.Types.CreateFolderInput> inputs = new List<cldfs.Types.CreateFolderInput>{
    new cldfs.Types.CreateFolderInput('01PLJOYLOAWJBFGBSE7FHK5AKOSIMDIO6H', 'TestFolder', 'b!ZfA15HRS1Uy9pH3Vw5tFjAHfP1lRYlZAvDwLnHYYq8sa-L6ejXB-TJbMYUxi1QfL', null)
};
List<cldfs.Resource> folders = cldfs.Client.createFolders(
   inputs,
  'sharepoint',
  'integrationUser'
);







Updated 25 May 2023
PREVIOUS
CloudFiles Client
NEXT
Copy Salesforce Files
Docs powered by archbee 
TABLE OF CONTENTS
Parameters
Return Type
Example