| Change Log | Date | Owner |
|---|---|---|
| Page Created |
| |
Enhancement: Probability Weighted Contribution Margin: |
| MILIC-ext, Nikola |
User Roles and Permissions
Opportunity Line Items (OLIs) inherit their visibility and access controls directly from their parent Opportunity records. To check opportunity Access please go to following page and check under User Roles and Permissions
SLV_OpportunityProductManagement.syncGBU method sets the GBU on OpportunityLineItem to match the Opportunity GBU field (SLV6_OPP_GBU__c).syncGBU method is invoked in the SLV_OpportunityProductManagement class to sync the GBU when the Opportunity or Opportunity Product’s GBU changes.updateContributionMargin method in SLV_OpportunityProductManagement adjusts Contribution_Margin__c based on the calculation method set in SLV5_OPR_CM_Calculation_Method__c:Contribution_Margin_Percent__c.Contribution_Margin_Amount_per_UoM__c.On Create:
updateOpportunityname method in SLV_OpportunityProductManagement sets the Opportunity name based on the SLV2_OLI_Application__c field if it does not match the current value in SLV_Product_Name__c.On Update:
updateOpportunityname) updates the Opportunity name if there is a mismatch between SLV2_OLI_Application__c and SLV_Product_Name__c.On Delete:
updateOpportunityname to reflect the change.On Create:
SLV_updateProductForecast updates forecast records based on SLV5_OPR_Unit_of_Measure__c and SLV5_OPR_CM_Calculation_Method__c.On Update:
SLV_updateProductForecast method recalculates forecast records when SLV5_OPR_Unit_of_Measure__c or SLV5_OPR_CM_Calculation_Method__c changes.On Delete:
SLV_deleteProductForecast deletes forecast records when an Opportunity Product is removed.On Create:
updateOpportunityInvolvedProduct in SLV_OpportunityProductManagement adds Product2.Name from the OpportunityLineItem to SLV_Involved_Product__c on the Opportunity.On Update:
updateOpportunityInvolvedProduct) also triggers on updates, adjusting SLV_Involved_Product__c based on the list of related Opportunity Products.On Delete:
updateOpportunityInvolvedProduct method removes the product from the Opportunity's SLV_Involved_Product__c field.On Create:
updateOpportunityInvolvedProduct method, SLV_End_Use__c from the Opportunity Product is added to SLV2_OPP_Product_End_Uses__c on the Opportunity.On Update:
SLV2_OPP_Product_End_Uses__c to reflect any changes in SLV_End_Use__c for related Opportunity Products.On Delete:
updateOpportunityInvolvedProduct method removes its SLV_End_Use__c from SLV2_OPP_Product_End_Uses__c.On Create:
SLV_End_Use__r.SLV_Application__c values are added to SLV2_OPP_Application1__c for new Opportunity Products in updateOpportunityInvolvedProduct.On Update:
SLV_End_Use__r.SLV_Application__c on Opportunity Products prompt recalculation of SLV2_OPP_Application1__c.On Delete:
SLV2_OPP_Application1__c.updateProductTotalAmount in SLV_OpportunityProductManagement sets SLV_Yearly_Revenue__c based on SLV_Yearly_Volume_at_Maturity__c and SLV5_OPR_Target_Unit_price_per_UoM__c.SLV_Yearly_Revenue__c is set to zero.addOpportunityProductHistory creates records in SLV6_Opportunity_Product_History__c to log changes in fields listed in SLV6_Opportunity_Product_fields_Tracking FieldSet.deleteOpportunityProductHistory deletes history records associated with deleted Opportunity Products.deleteNegotiationHistory method deletes negotiation history records associated with deleted Opportunity Products.updateDummyProductFlag in SLV_OpportunityProductManagement sets the SLV_Dummy_Product_Exists__c flag on the Opportunity if dummy products are linked to it.updateProductTotalAmount calculates and updates the SLV_Product_Total_Amount__c for Opportunity Products, using volume and target unit price fields.$Permission.Bypass_Validation_Rules = FALSE).Opportunity.Type) is set to “Product Qualified.”OpportunityLineItem.Product2.Name) is set to “Dummy Product.”$Permission.Bypass_Validation_Rules = FALSE).OpportunityLineItem.Manufacturing_Plant__c) is set to an unapproved plant (not within the allowed list for the Opportunity type).$Permission.Bypass_Validation_Rules = FALSE).OpportunityLineItem.Shipping_Plant__c) does not match any approved shipping locations associated with the Opportunity.OpportunityLineItem.SLV5_OPR_CM_Calculation_Method__c) is updated.OpportunityLineItem.Contribution_Margin__c) is inconsistent with the selected Calculation Method (either “Percent” or “Amount”).Flow Name: Create Product Forecasts
Purpose:
This flow creates a forecast record for each Opportunity Line Item added to an opportunity, ensuring that forecasts are generated and updated based on specific business rules.
Retrieve Existing Forecasts
$Record > Product ID$Record > Opportunity IDCheck for Existing Forecasts
Counter Logic and Forecast Creation
Counter Check (Counter < 5):
TEXT(YEAR(DATEVALUE(DATETIMEVALUE({!SLV7_OPP_Targeted_first_delivery_date}))) + {!counter}) |
Counter Check (Counter ≥ 5):
Field Assignments (Set Values)
|

SLV7_OPR_Contribution_Margin_Tot_Amount__c * Opportunity.Probability |
