Apex
CloudFiles Client

Create Folders Async

this method creates folders in external storage like sharepoint, google drive etc this method runs asynchronously it has following differences with create folders docid\ y mvh2exvakp9stgqzvcc it handles the rate limits of cloud storage as well as salesforce please use this method instead of the create folders docid\ y mvh2exvakp9stgqzvcc method while migrating large amount of data 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 docid\ tlg7wz9iwyxqprmj5gduf which would have information about the newly created folder global static void createfoldersasync( list\<types createfolderinput> inputs, string libraryid, string runas ) parameters inputs list of types createfolderinput docid\ boecl uvwqylalrg1e6r8 libraryid type of library example sharepoint you can get this value from content library docid\ wtj62wux2a6hgfwvpm4ij 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 list\<cldfs types createfolderinput> inputs = new list\<cldfs types createfolderinput>{ new cldfs types createfolderinput('01pljoyloawjbfgbse7fhk5akosimdio6h', 'testfolder', 'b!zfa15hrs1uy9ph3vw5tfjahfp1lrylzavdwlnhyyq8sa l6ejxb tjbmyuxi1qfl', 'super random string') }; cldfs client createfoldersasync( inputs, 'sharepoint', 'integrationuser' );