Loading
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Schedule a Batch Job For Batch Processing

          Schedule a Batch Job For Batch Processing

          To automatically process the PDF documents uploaded into your designated folder, schedule the healthcloudds.BatchDocIngestionProcessor Apex class. After the document are processed, the extracted output becomes available in the Document Extraction Request object.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise and Unlimited Editions of Health Cloud with the Agentforce for Health Cloud license
          User Permissions Needed
          To define, edit, delete, set security, and set version settings for Apex classes: Author Apex

          Use this automation to extract uploaded documents at regular intervals without manual intervention.

          If you schedule this job through the Salesforce UI, it can be scheduled only at an hourly interval. To run the job more frequently, schedule it from the Developer Console by using multiple schedulers offset at 15-minute intervals so that the batch runs four times per hour, for example, at 00, 15, 30, and 45 minutes. Choose to run it less frequently if your workload doesn't require constant extraction.

          1. From the User Menu, select Developer Console.
            The Force.com Developer Console window opens.
          2. From the Debug menu, select Open Execute Anonymous Window.
            The Enter Apex Code window opens.
          3. Paste this code.
            healthcloudds.BatchDocIngestionProcessor obj = new healthcloudds.BatchDocIngestionProcessor();
            System.schedule('Batch Lab Reports Process 0', '0 0 * * * ?', obj);
            System.schedule('Batch Lab Reports Process 1', '0 15 * * * ?', obj);
            System.schedule('Batch Lab Reports Process 2', '0 30 * * * ?', obj);
            System.schedule('Batch Lab Reports Process 3', '0 45 * * * ?', obj);
            
            The four schedules together make sure that the job runs every 15 minutes.
          4. Select the code statement.
          5. Click Execute Highlighted.
          6. Close the Developer Console.
           
          Loading
          Salesforce Help | Article