Apex
CloudFiles Client
Split Document
the split document apex action allows you to intelligently split documents within salesforce we assume you’ve already explored the split document using ai docid\ muam8ohdl70xumq9pmt96 flow action global static void splitdocument( list\<types splitdocumentpayload> payloads, string runas ) parameters payloads list of types splitdocumentpayload docid\ uxqcdjb1h60g djwl4ris runas runas, usually this would be a static value integrationuser return type this functions doesn't return anything example in this example, we will learn how to split a file stored in salesforce and then save the resulting split files back into the native salesforce record cldfs resource destination = new cldfs resource( '006dl000005h4srqac', null, null, 'salesforce', null ); string context = '006dl000005h4srqac'; list\<cldfs types splitdocumentpayload> payloads = new list\<cldfs types splitdocumentpayload>{ new cldfs types splitdocumentpayload( '069dl00000b4c7wqav', null, 'salesforce', destination, null, context ) }; cldfs client splitdocument(payloads, 'integrationuser');