Loading
Salesforce now sends email only from verified domains. Read More
Communications Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Customize Additional Quote Cloning Options in Enterprise Sales Management (Managed Package)

          Customize Additional Quote Cloning Options in Enterprise Sales Management (Managed Package)

          Customize quote cloning options to suit your business needs by configuring the required related objects.

          Managed Package Icon This feature is part of the Communications Cloud managed package.

          When your sales representative clones a quote, the quote line items are cloned by default because Quote and QuoteLineItem are configured as the default objects to clone. The out-of-the-box configuration also contains related objects to clone additional options, including quote members, quote groups, product relationships, promotions, and discounts. If you don't want to use these out-of-the-box additional options, you can customize them to suit your business needs by configuring the required related objects.

          Configure Related Objects to Customize Quote Versioning Options

          To use the cloning and versioning features for a quote in Enterprise Sales Management, update the session variable in b2bSampleAppCard.

          1. From the App Launcher, find and select Vlocity Cads.
          2. In the Layouts and Cards section, click b2bSampleAppCard.
          3. Add a session variable b2bQuoteVersionConfig and enter this value:
            {"defaultObjectsToClone":[{"name":"Quote"},{"name":"QuoteLineItem"}],"cloningOptions":[{"customLabelName":"CMEXQuoteCloneMemberAndGroup","isSelected":true,"objectsToClone":[{"name":"vlocity_srndev__QuoteGroup__c"},{"name":"vlocity_srndev__QuoteMember__c"}]},{"customLabelName":"CMEXQuoteCloneProductRelationship","isSelected":true,"objectsToClone":[{"name":"vlocity_srndev__QuoteLineItemRelationship__c"}]},{"customLabelName":"CMEXQuoteClonePricing","isSelected":true,"objectsToClone":[{"name":"vlocity_srndev__QuoteDiscount__c"},{"name":"vlocity_srndev__QuoteDiscountPricing__c"},{"name":"vlocity_srndev__QuoteDiscountItem__c"},{"name":"vlocity_srndev__QuoteAppliedPromotion__c"},{"name":"vlocity_srndev__QuotePricingAdjustment__c"},{"name":"vlocity_srndev__QuoteLineItemPricingAdjustment__c"},{"name":"vlocity_srndev__QuoteAppliedPromotionItem__c"}]}],"objectDetailsInSortedOrder":[{"objectName":"Quote","className":"B2BCmexCloneImpl","filterFieldName":"Id","filterOnObject":"Quote","dependentFields":["Name"]},{"objectName":"vlocity_srndev__QuoteGroup__c","className":"B2BCmexCloneImpl","filterFieldName":"vlocity_srndev__QuoteId__c","filterOnObject":"Quote","dependentFields":["vlocity_srndev__QuoteId__c"]},{"objectName":"vlocity_srndev__QuoteMember__c","className":"B2BCmexCloneImpl","filterFieldName":"vlocity_srndev__QuoteId__c","filterOnObject":"Quote","dependentFields":["vlocity_srndev__QuoteId__c","vlocity_srndev__QuoteGroupId__c"]},{"objectName":"QuoteLineItem","className":"B2BCmexQuoteLineItemCloneImpl","filterFieldName":"QuoteId","filterOnObject":"Quote","dependentFields":["QuoteId","vlocity_srndev__QuoteGroupId__c","vlocity_srndev__QuoteMemberId__c"],"orderBy":"vlocity_srndev__LineNumber__c"},{"objectName":"vlocity_srndev__QuoteLineItemRelationship__c","className":"B2BCmexCloneImpl","filterFieldName":"vlocity_srndev__QuoteId__c","filterOnObject":"Quote","dependentFields":["vlocity_srndev__QuoteId__c","vlocity_srndev__QuoteLineItemId__c","vlocity_srndev__RelatedQuoteLineItemId__c","vlocity_srndev__RelatedAssetReferenceId__c"]},{"objectName":"vlocity_srndev__QuoteDiscount__c","className":"B2BCmexCloneImpl","filterFieldName":"vlocity_srndev__QuoteId__c","filterOnObject":"Quote","dependentFields":["vlocity_srndev__QuoteId__c"]},{"objectName":"vlocity_srndev__QuoteDiscountPricing__c","className":"B2BCmexCloneImpl","filterFieldName":"vlocity_srndev__QuoteDiscountId__c","filterOnObject":"vlocity_srndev__QuoteDiscount__c","dependentFields":["vlocity_srndev__QuoteDiscountId__c"]},{"objectName":"vlocity_srndev__QuoteDiscountItem__c","className":"B2BCmexCloneImpl","filterFieldName":"vlocity_srndev__QuoteDiscountId__c","filterOnObject":"vlocity_srndev__QuoteDiscount__c","dependentFields":["vlocity_srndev__QuoteDiscountId__c"]},{"objectName":"vlocity_srndev__QuoteAppliedPromotion__c","className":"B2BCmexCloneImpl","filterFieldName":"vlocity_srndev__QuoteId__c","filterOnObject":"Quote","dependentFields":["vlocity_srndev__QuoteId__c","vlocity_srndev__QuoteDiscountId__c","vlocity_srndev__QuoteLineItemId__c"]},{"objectName":"vlocity_srndev__QuotePricingAdjustment__c","className":"B2BCmexCloneImpl","filterFieldName":"vlocity_srndev__QuoteId__c","filterOnObject":"Quote","dependentFields":["vlocity_srndev__QuoteId__c","vlocity_srndev__QuoteItemId__c","vlocity_srndev__QuoteAppliedPromotionId__c"]},{"objectName":"vlocity_srndev__QuoteAppliedPromotionItem__c","className":"B2BCmexCloneImpl","filterFieldName":"vlocity_srndev__QuoteAppliedPromotionId__c","filterOnObject":"vlocity_srndev__QuoteAppliedPromotion__c","dependentFields":["vlocity_srndev__QuoteAppliedPromotionId__c","vlocity_srndev__QuoteLineItemId__c"]}]}
            
          4. Configure the related objects as needed.
            JSON Node Description
            defaultObjectsToClone The list of sObjects that are cloned by default, with or without additional quote cloning options selected.
            cloningOptions

            The additional quote cloning options that appear in the UI.

            • customLabelName stores the UI label of the quote cloning option.

            • objectsToClone stores the related objects to clone if the user selects a particular quote cloning option. When cloning an object, all its associated records are cloned.

            For example, an out-of-the-box option is to clone quote members and quote groups.

            • The custom label "Clone members and groups" conveys this information to the user.

            • When a user selects this option, the QuoteGroup and QuoteMember objects are cloned.

            objectDetailsInSortedOrder

            A JSON list that contains the required object details in a sorted order. If the fields of sObject A depend on the fields of sObject B, clone sObject B records first, followed by sObject A records.

            For example, if the JSON list contains Quote sObject details, followed by QuoteGroup sObject details, then Quote records are cloned first.

            • objectName stores the name of the object to clone.

            • className stores the name of the clone implementation.

            • filterFieldName stores the field of the sObject that determines which records are cloned. Only those sObject records whose specified filter field values match any already cloned filterOnObject record IDs are cloned. For example, if QuoteId is the filter field for QuoteMember, with Quote as the filterOnObject, all quote members whose QuoteId field values match any Quote record IDs are cloned.

            • filterOnObject stores the sObject whose record IDs are used to perform the filter operation.

            • dependentFields stores the fields that need to be dissociated from the source quote and reassociated with the new quote clone.

          5. Save the changes.
           
          Loading
          Salesforce Help | Article