Apex
CloudFiles Client
Process Document using AI
To use this action in apex, you would have to use the processDocument method of the Client class, defined as follows:
- String runAs, usually this would be a static value - 'integrationUser'
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.