Apex
CloudFiles Client
Create Content Version Batch
this method will create content versions of a batch of files in salesforce refer to https //help cloudfiles io/salesforce/create salesforce files batch article for more functional details global static void createcontentversionbatch( list\<types createcontentversionbatchpayload> inputs, string runas ) parameters inputs list of https //app archbee com/docs/b lib1oaefr7xf6 gqmfd/fnx9unfs50pgoqtlilnqj runas email id of the user on whose behalf the function should run if you want the action to run as the automation user, provide integrationuser this field is for cloudfiles internal use only and will not affect the content version or the content document created by this action in salesforce 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');