IBM Support

How to ensure that manageItem API updates existing Item Attribute record in db

Question & Answer


Question

Have an item attribute defined in SBC. Now invoke manageItem API with Operation='Manage' at AdditionalAttribute tag. How can we ensure that it updates the existing entry in db rather than inserting a new record?

Cause

If the item attribute is set to not allow assignment of multiple values then mangeItem API call fails with 'Cannot Define Multiple Values For This Attribute'.

Answer

To ensure that the API does not try to insert a new record, the following property should be set in customer_overrides.properties file.

yfs.manageItem.EnableUpdateOfAdditionalAttribute

This will assure that the API is able to update the existing entry and no new record is inserted. More details can be found here.

[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"9.4;9.3;9.2.1;9.2","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21962459