My Oracle Support Banner

Headless Configuration Service Deletes Already Added Childs Or Not Adds Childs Through Constraint Over Linked Item (Doc ID 2014912.1)

Last updated on NOVEMBER 09, 2023

Applies to:

Siebel CRM - Version 8.1.1.14 [IP2014] and later
Information in this document applies to any platform.

Symptoms

In 81114, when a promotion is added to a quote, the constraints cause components to be added. However if the Headless Configuration Service is run afterwards then they get removed.

Steps to replicate:
>Create a customizable product "5 speed automatic". This will be the parent.
>Add 2 childs "C1" and "C2" in the parents structure where default and min cardinality are 0.
> Create a linked item where BO = Order Entry (Sales), BC = Order Entry - Line Items, BC Field = Action Code and Name = Action Code. Needs Execution Flag set to False.
> Create constraint where name = test, constraint = When possible, constrain (quantity of C1 from C1 = 1) to be true with a priority of 0. This should add "C1"
>Create constraint where name = Test 1 and value = When Action Code = Add requires selection of C2 from C2. This should add "C2"
> Add this inside any promotion with default cardinality as 1
> Go to sales order, create an order, go to catalog > Browse, go to the required catalog:Category and add the promotion.
> Refresh the line item BC and you will notice that C2 gets deleted.

The following code causes the Headless Configuration Service to be called at the end. In this case it was added to the "Sales Order Catalog Product List Applet - Add to Cart" applet which was the applet used to add the promotion:

WebApplet_InvokeMethod


if (MethodName == "AddToCart")
{
objApplication = TheApplication();
with(objApplication)
{

psInputs = NewPropertySet();
psOutputs = NewPropertySet();
}


objService = objApplication.GetService("Headless Configuration Service");
with(psInputs)
{
SetProperty("Display Error","N");
SetProperty("Sync","Y");
SetProperty("Document Id","9SIA-91I0S");

SetProperty("Document Type","Order");
SetProperty("Integration Object","SIS OM Order");
SetProperty("Log Error","Y");
SetProperty("Promotion Automatch","Min Max Cardinality");
}
objService.InvokeMethod("Apply Promotion Defaults",psInputs,psOutputs);
}

 

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.