Apex
CloudFiles Client
Process Document using AI
to use process document using ai docid 31ujx1ligtkwfkjuanbzt action in apex, you would have to use the processdocument method of the client class, defined as follows global static void processdocument( list\<types processdocumentpayload> payloads, string runas ) parameters a list of types processdocumentpayload docid 4kgg5 bwjed0efb7tevyd string runas, usually this would be a static value 'integrationuser' return type as evident from the method definition above, it returns nothing immediately after cloudfiles is done processing the document it will fire the document processed platform event example apex list\<cldfs types processdocumentpayload> payloads = new list\<cldfs types processdocumentpayload>({ new cldfs types processdocumentpayload( 'fileid', 'driveid', 'library', 'context' ) }); cldfs client processdocument(payloads,'integrationuser');