Loading
Quote Creation Issue - Non-USD CurrenciesRead More
Important Advisory: iOS Update Impacting CG Mobile ApplicationRead More
Get Started with Communications, Media, and Energy & Utilities (CME)...
Sample Agentic Instructions for Quote Order Templates

Sample Agentic Instructions for Quote Order Templates

Manage Quote and Order templates with five operations. Search templates using filters and keywords. Retrieve detailed information by ID or name. Save existing carts as reusable templates. Apply templates to new carts with customization. Delete templates including approved ones. All operations support asynchronous execution, pricing, and validation.

Required Editions

Available in: Classic and Lightning Experience
Available in: Enterprise, Unlimited, and Developer Editions for CME Managed Package

Search Template

Action Label: Search Quote or Order Templates

Find templates that use filters and keywords, with smart recommendations when exact matches aren't available.

List All Templates (No Filters)

  • List all templates.

Text Search

  • Search for templates related to "Enterprise."
  • Find templates matching "Fiber Broadband" in name or tags.

Filter by Status

  • Show me all templates that are in "Approved" status.
  • Search for templates where the status is "Draft."

Filter by Category

  • Search for templates where category is "Standard."
  • Show me all "Promotional" category templates.

Filter by Cart Type

  • Show me all Quote templates.
  • Find all Order templates.

Multi-Criteria Filter (AND Logic)

  • Find templates where the status is "Approved" and the category is "Premium."
  • Search for templates with the status "Approved" and category "Standard".

Sort Results

  • List all approved templates sorted by name descending.
  • Find all templates sorted by ascending category.

Pagination

  • Show me the first 5 templates.
  • List the first 3 approved templates.

Combined: Search + Filter + Sort + Pagination

  • Search for "Broadband" templates in "Approved" status, sorted by name ascending, showing 5 per page.
  • Find "Enterprise" templates in the "Premium" category, page 2 with 10 results per page, sorted by name.

Get Template

Action Label: Get Quote or Order Template

Retrieve detailed information about a specific sales configuration template, including its name, status, category, pricing details, and tags using the template ID.

Get by Template Name

  • Get the details of template with template name "Enterprise Fiber Bundle"
  • Get the details of template 'B2C Roaming Template 5'

Get by Template ID

  • Get the details of template with ID "a1B5g00000XYZ123"
  • Retrieve template a1B5g00000XYZ123

Follow-Up After Search

After receiving search results, use a template ID from those results:

  • Show me more details about template ID "a1B5g00000ABC456"
  • Tell me more about the "Enterprise Fiber Bundle" template

Save Template

Action Label: Save Quote or Order as Template

Save a Quote or Order setup as a reusable template with optional details like description and category. It gives you a template ID with which you can create similar quotes or orders.

Basic Save (Required Fields Only)

  • Fetch Order with order name 'Source Order-B2C Roaming-B2C' and save template for this order with the template name as 'B2C Roaming Template 5'.
  • Find the quote with quote name 'Acme Q4 Renewal Quote' and save it as a template named 'Acme Renewal Template'.
  • Save order 8015g000001XYZ as a template called "Standard Mobile Plan".

Save with Description

  • Fetch Order with order name 'B2C Roaming Order' and save template named 'Roaming Template' with description 'B2C roaming bundle with international calling and data'
  • Save quote 0Q05g000001ABC as a template named "Enterprise Fiber Bundle" with description "Standard enterprise fiber optic bundle with 1Gbps speeds and premium support".

Save with Category

  • Fetch Order with order name 'Enterprise Fiber Order' and save it as template 'Enterprise Fiber Template' in the "Premium" category.
  • Save quote 0Q05g000001ABC as a template named "Enterprise Fiber Bundle" in the "Premium" category.

Save with Description and Category

  • Fetch Order with Order name 'B2C Fiber Order' and save template 'B2C Fiber Template' with description 'Standard fiber bundle for B2C customers' in the "General" category.
  • Save Quote 0Q05g000001ABC as a template named "Enterprise Fiber Bundle" with description "Enterprise fiber bundle with premium support" in the "Premium" category.

Save with Pricing

  • Fetch Order with Order name 'Enterprise Order' and save template 'Enterprise Template' and run pricing after save.
  • Save quote 0Q05g000001ABC as a template named "Enterprise Fiber Bundle" and run pricing after save.

Save with Validation

  • Fetch Order with Order name 'Enterprise Order' and save template 'Enterprise Template' and run validation after save.
  • Save quote 0Q05g000001ABC as a template named "Enterprise Fiber Bundle" and run validation after save.

Save with Pricing and Validation

  • Fetch Order with Order name 'B2C Mobile Order' and save template 'B2C Mobile Template' with pricing and validation enabled.
  • Save quote 0Q05g000001ABC as a template named "Enterprise Fiber Bundle" with pricing and validation enabled.

Save in Async Mode

  • Fetch Order with order name 'Large Enterprise Order' and save template 'Large Enterprise Template' in async mode.
  • Save quote 0Q05g000001ABC as a template named "Enterprise Fiber Bundle" in async mode.

Save in Async Mode with Pricing and Validation

  • Save quote with quote name 'Bulk Processing Quote' as template 'Bulk Template' in async mode with pricing and validation.
  • Save quote 0Q05g000001ABC as a template named "Enterprise Fiber Bundle" in async mode with pricing and validation.

Save with All Parameters

  • Fetch Order with order name 'B2C Premium Fiber Order' and save template named 'B2C Premium Fiber Template' with description 'Premium fiber bundle for B2C segment' in the "Premium" category, running in async mode with pricing and validation enabled.

Apply Template

Action Label: Apply Quote or Order Template

Apply a saved template to a Quote or Order cart with optional customization like name, account linking, and pricing, then returns the cart ID for the newly configured cart.

Basic Apply (Required Fields Only)

  • Fetch Order having order name 'B2C PriceList Destination Order 3' and apply template with name as 'B2C Roaming Template 5' on this order 'B2C PriceList Destination Order 3'.
  • Apply template a1B5g00000XYZ123 to order 8015g000001DEF.

Apply with Pricing

  • Fetch Order having order name 'B2C PriceList Destination Order 3' and apply template with name as 'B2C Roaming Template 5' on this order 'B2C PriceList Destination Order 3' and run pricing.
  • Apply template a1B5g00000XYZ123 to quote 0Q05g000001ABC and run pricing.

Apply with Validation

  • Fetch Order having order name 'B2C PriceList Destination Order 3' and apply template with name as 'B2C Roaming Template 5' on this order 'B2C PriceList Destination Order 3' and run validation.
  • Apply template a1B5g00000XYZ123 to quote 0Q05g000001ABC and run validation.

Apply with Pricing and Validation

  • Fetch Order having order name 'B2C PriceList Destination Order 3' and apply template with name as 'B2C Roaming Template 5' on this order 'B2C PriceList Destination Order 3' and run pricing and validation.
  • Apply template a1B5g00000XYZ123 to quote 0Q05g000001ABC with pricing and validation.

Apply in Async Mode

Returns a job ID to track progress.

  • Fetch Order having order name 'B2C PriceList Destination Order 3' and apply template with name as 'B2C Roaming Template 5' on this order 'B2C PriceList Destination Order 3' in async mode.
  • Apply template a1B5g00000XYZ123 to quote 0Q05g000001ABC in async mode.

Apply with All Parameters

  • Apply template 'Enterprise Fiber Template' to order 'Acme Enterprise Order' with name "Acme Enterprise Bundle", running in async mode along with pricing and validation.
  • Apply template a1B5g00000XYZ123 to quote 0Q05g000001ABC with name "Acme Enterprise Bundle" running in async mode along with pricing and validation.

Delete Template

Action Label: Delete Sales Config Template

Deletes a template by removing its metadata record, with options to also delete the underlying Quote/Order or force-delete templates that are already approved.

Basic Delete (Template Metadata Only)

  • Delete template 'B2C Roaming Template 5'
  • Remove template a1B5g00000OLD456.

Delete with Underlying Record

Also deletes the Quote or Order that backs the template.

  • Delete template 'B2C Roaming Template 5' and also delete its underlying quote/order.
  • Delete template a1B5g00000XYZ123 and also delete its underlying quote/order.

Force Delete (Approved Templates)

Normal deletion of "Approved" templates fails. Use force delete to override.

  • Force delete template 'Enterprise Approved Template'.
  • Delete the approved template a1B5g00000XYZ123 even though it's approved.

Force Delete with Underlying Record

  • Force delete template 'Enterprise Approved Template' and also delete its underlying quote/order.
  • Force delete template a1B5g00000XYZ123 and also delete its underlying quote/order.
 
Loading
Salesforce Help | Article