Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To initiate a scheduled invoice generation, an Autolaunched Flow invoking the Invoice API invocable class should be created where the flow will be called in a Batch Job.

...

  1. Go to Setup.

  2. In the Quick Find box, search and select Batch Management.

  3. Click New.

  4. Enter some required data and click the autolaunch flow that’s been created a while ago and click Next. In next screen, select the recordId as Flow Input Variable and Opportunity as Object
    Note: The required batch size would be 60 only to prevent hitting the governor limit

...

  1. Click Save.

Create a Schedule Flow

...

System.schedule('Schedule_OrphanGatewayTransactionInvoiceLinker 1', '0 30 * * * ?', new PosiPay__.OrphanGatewayTransactionInvoiceLinker());

...