...
Create a new Autolaunched Flow (No Trigger).
Add a new input variable that will serve as the unique identifier for each record to process. This input variable is necessary for the Batch Job creation.
Click the New Resource button.
Provide the following details:
Resource Type = Variable
API Name = Desired API Name of the input variable
Data Type = Text
Available for input (under the Availability Outside the Flow) = TRUE
Add a Get Records element to retrieve the exact record where an invoice will be generated.
Make sure to provide the exact object of the record.
Filter the records to be processed based on the stored record in the input variable.
Add an Action element to invoke the Invoice API invocable class.
Filter by Type and select Apex Action
Find and select the Invoice API invocable class.
Provide the necessary details:
ersdfdsf
...