Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
AddEligibleInsuranceClausesOptions Class
Namespace
Usage
Use the AddEligibleInsuranceClausesOptions class with the Add Eligible Insurance Clauses invocable action to add eligible insurance clauses.
Example
When calling the Add Eligible Insurance Clauses invocable action from Apex, create an AddEligibleInsuranceClausesOptions instance and set the properties, then use it as addClauseOptions.
1// Optional optionFlags for addEligibleInsuranceClauses
2if (inputs != null && inputs.containsKey('optionFlags')) {
3 Map<String, Object> addClauseOptions =
4 (Map<String, Object>) inputs.get('optionFlags');
5 if (addClauseOptions != null) {
6 runtime_industries_insurance.AddEligibleInsuranceClausesOptions addClauseApexOptions =
7 new runtime_industries_insurance.AddEligibleInsuranceClausesOptions();
8 if (addClauseOptions.containsKey('saveContext')) {
9 addClauseApexOptions.saveContext =
10 (Boolean) addClauseOptions.get('saveContext');
11 }
12 action.setInvocationParameter('addClauseOptions', addClauseApexOptions);
13 }
14}AddEligibleInsuranceClausesOptions Constructors
The AddEligibleInsuranceClausesOptions class includes these constructors.
AddEligibleInsuranceClausesOptions(saveContext)
Signature
public AddEligibleInsuranceClausesOptions(Boolean saveContext)
Parameters
- saveContext
- Type: Boolean
- Indicates whether to save the operation context when adding eligible insurance clauses (true) or not (false).
- The default value is true.