Apex
CloudFiles Client
Create Content Version Batch
this method will create content versions of a batch of files in salesforce refer to this article for more functional details global static void createcontentversionbatch( list\<types createcontentversionbatchpayload> inputs, string runas ) parameters inputs list of types createcontentversionbatchpayload 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 this method does not return anything example cldfs createcontentversionflowinput file = new cldfs createcontentversionflowinput(); file library = 'sharepoint'; //library file driveid = 'b!njbtpq z5uejtfrj f24xeqqlpud8vtfsg7gbcrxjepiun9bkb 7qbdptqhvd cp'; //driveid file id = '01kehakuusu3e5ouxbbjglytd3izu4bcrv'; //fileid list\<cldfs createcontentversionflowinput> files = new list\<cldfs createcontentversionflowinput>(); files add(file); string context = '{"recordid" "701dl00000wonvtqar"}'; list\<cldfs types createcontentversionbatchpayload> inputs = new list\<cldfs types createcontentversionbatchpayload>{ new cldfs types createcontentversionbatchpayload( files, context ) }; cldfs client createcontentversionbatch(inputs, 'integrationuser');