PlaceQuoteRLMApexProcessor Class

Contains methods to place a quote with details of the graph request, pricing preferences, and configuration options.

PlaceQuote

Learn more about the methods available with the PlaceQuoteRLMApexProcessor class.

The PlaceQuoteRLMApexProcessor class includes these methods.

Use the method in the PlaceQuoteExecutor class to execute the Place Quote Apex API request by assigning the properties for graph request, pricing references, and configuration options.

public static placequote.PlaceQuoteResponse execute(placequote.PricingPreferenceEnum pricingPreferenceEnum, placequote.GraphRequest graphRequest, placequote.ConfigurationInputEnum configurationInputEnum, placequote.ConfigurationOptionsInput configurationOptionsInput)

pricingPreferenceEnum

Type: placequote.PricingPreferenceEnum

Pricing preference during the quote process.

graphRequest

Type: placequote.GraphRequest

The sObject graph values of the quote payload to be ingested.

configurationInputEnum

Type: placequote.ConfigurationInputEnum

Configuration input for the quote process.

configurationOptionsInput

Type: placequote.ConfigurationOptionsInput

Configuration options during the ingestion process.

Type: placequote.PlaceQuoteResponse

Use the method in the PlaceQuoteExecutor class to execute the Place Quote Apex API request by assigning the properties for graph request, pricing references, and configuration options. This method also includes the property to define fetching of rate card entries.

public static placequote.PlaceQuoteResponse execute(placequote.PricingPreferenceEnum pricingPreferenceEnum, placequote.CatalogRatesPreferenceEnum catalogRatesPreference, placequote.GraphRequest graphRequest, placequote.ConfigurationInputEnum configurationInputEnum, placequote.ConfigurationOptionsInput configurationOptionsInput)

pricingPreferenceEnum

Type: placequote.PricingPreferenceEnum

Pricing preference during the quote process.

catalogRatesPreference

Type: placequote.CatalogRatesPreferenceEnum

The rate card entries defined in the catalog that must be fetched for quote line items, with usage-based pricing during the quote creation process. The CatalogRatesPreferenceEnum enum is available when the Usage-Based Selling feature is enabled.

graphRequest

Type: placequote.GraphRequest

The sObject graph values of the quote payload to be ingested.

configurationInputEnum

Type: placequote.ConfigurationInputEnum

Configuration input for the quote process.

configurationOptionsInput

Type: placequote.ConfigurationOptionsInput

Configuration options during the ingestion process.

Type: placequote.PlaceQuoteResponse

To place a quote from Apex, refer to the example implementation of the PlaceQuoteRLMApexProcessor class.

PlaceQuote

Customize this example to suit your requirements. Create the list of records to be ingested by using these steps. Replace the respective IDs with the values that are present in your org. For example, replace the value of ${Pricebook2Id} field with the price book ID that’s present in the org.

  • Set up a quote and quote line item. To associate the Record object with a reference identifier, create an instance of the RecordWithReferenceRequest class.

  • To create a quote line relationship, create an instance of the RecordResource class.

  • Create the list of records to be ingested.

  • To contain all record objects, create an instance of the GraphRequest class.

    The CatalogRatesPreferenceEnum enum is available when the Usage-Based Selling feature is enabled.