Scheduling the Billing Events to Sales Invoices or Credit Notes Flow
Depending on whether your org is configured to run the integration in enhanced mode, the steps for scheduling the flow are different.
For more information about enhanced mode When SRP runs in enhanced mode, it uses the improved mechanism introduced starting with Spring 2021. This includes better flow execution performance and a modern user experience. Enhanced mode is enabled when the Run Integration in Enhanced Mode field in the SRP Integration Settings custom setting is selected., see Enhanced Mode.
Scheduling the Flow in Enhanced Mode
To schedule the background execution of the Billing Events to Sales Invoices or Credit Notes flow:
- Open the SRP Administration page.
- In the SRP Scheduled Actions section, click Schedule Flow Execution.
- Under Flow, select "Create Sales Invoices and Credit Notes from Billing Events".
- Click Next.
- Under Schedule Frequency, select one of the following:
- Hourly: if you want the flow to execute every hour.
- Daily: if you want the flow to execute once every day.
- Weekly: if you want the flow to execute on specific days of the week. You can then select the days.
- Monthly: if you want the flow to execute once every month. You can then select a monthly method to determine on which day of the month the flow executes.
Depending on your selection, additional options might be available. For more information, see Schedule Flow Execution Fields.
- Under Schedule Start Time, select the preferred time of day when you want the flow to execute.
- Click Schedule.
The job is now scheduled. If you have the required permissions, you can view it from Setup | Environments | Jobs | Scheduled Jobs. The name of the job is Create Sales Invoices and Credit Notes from Billing Events.
Scheduling the Flow in Legacy Mode
To schedule the background execution of the Billing Events to Sales Invoices or Credit Notes flow:
- From Setup, click Custom Code | Apex Classes.
- Click Schedule Apex.
- Enter a job name.
- For Apex Class, select ConvertBEToInvoicesCreditsScheduler.
- Define the frequency, start and end dates, and the preferred start time. For more information on the available options, see the Salesforce Help.
- Click Save.