You are here:
InsContractService:createRenewQuotesInBatch
Use this service to allow you to control how many Apex jobs to initiate, and the number of batches to run per Apex job, for a large number of contract renewals.
Method: createRenewQuotesInBatch
How It Works
-
The service takes a list of
contractIds. -
The service breaks the list into the desired sub-list contracts and sends that to the renewal Integration Procedure (IP).
-
The IP includes the steps for retrieving contract details, and calls the
createUpdateQuoteservice for the creation of the renewal quote. -
The IP runs the processes within Salesforce limit (maximum five Apex jobs running in parallel).
Remote Options
Option |
Description |
|---|---|
|
Optional. List of Contract Ids for renewal. |
|
Required. Name of Integration Procedure to use for renewal of contracts. |
|
Filters used to identify contracts to be renewed. Comma separated fieldName:fieldValue pair. Example:
This parameter can be supplied as either an option map or input map in the OmniScript. |
|
Number of contracts to be processed, per asynchronous Apex job. This parameter determines how many Apex jobs are instantiated, given the number of contracts needed to renew. IMPORTANT: Salesforce allows a maximum five Apex jobs to run in parallel. |
|
Number of contracts to be processed, per batch job. This parameter determines how many batches to run, as per the number of contracts needed to process within one job. |

