Apex
CloudFiles Client

Create Folders Async

Creates folders in external storage like SharePoint, Google Drive etc. This method runs asynchronously. It has following differences with Create Folders

  1. It handles the rate limits of cloud storage as well as Salesforce. Please use this method instead of the Create Folders method while migrating large amount of data
  2. It doesn't return the information about the newly create folders. You can provide a request id(random string) with the input, which ca later be used to filter CloudFiles Event Object which would have information about the newly created folder
Apex


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

None

Example



Apex