Product Administration Guide > Technical Reference > eConfigurator API >

APIs to Set Product and Attribute Values


This section describes APIs used for setting product and attribute values.

AddItem

This method adds an item to a specified port, creating a new instance of an item. If you want to change the quantity of an existing instance of an item, use SetItemQuantity.

Input Arguments:
Output Arguments:

None.

CopyInstance

This method copies an instance.

Input Arguments:
Output Arguments:

None.

RemoveItem

This method removes an item from the instance.

Input Arguments:
Output Arguments:

None.

RepriceInstance

This method updates the instance with values from the Pricing Manager service. A call to the Pricing Manager service's CalculatePriceCX method returns a property set that is the input to this method.

Input Arguments:

The input property set has child property sets containing the repricing information. The format of the input property set is as follows:

< ObjId="value" RootId="value" Version="value" >

< IntId="integration id" FieldName="value"... FieldName="value" >

< IntId="integration id" FieldName="value"... FieldName="value" >

...

< />

In this context, the Integration ID is used to retrieve the instance item.

Output Arguments:

None.

SetAttribute

This method sets the value of an item's attribute.

Input Arguments:
Output Arguments:

None.

SetItemQuantity

This method sets the quantity of an item.

Input Arguments:
Output Arguments:

None.

SetFieldValue

This method updates the value of a field in a line item.

Input Arguments:
Output Arguments:

None.


 Product Administration Guide 
 Published: 23 June 2003