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

Follow the steps on how to create an Autolaunched Flow invoking the Invoice API invocable class:a Scheduled-Triggered Flow

  1. Go to Setup.

  2. In the Quick Find box, search and select Flows.

  3. Click New Flow.

  4. In the New Flow modal, select Scheduled-Triggered Flow.

...

  1. Set the date, time, and frequency.

...

  1. Drag an action and find the batch name that you created a while ago in batch management and select it.

    image-20240910-234320.pngImage Added

    image-20240910-234320.pngImage Removedimage-20240910-234337.pngImage Removed

    image-20240910-234337.pngImage Added

    7. Click Save and activate.

...