How can we define a translator for an Integration Object Item Attribute in SAP Commerce?
Below screenshot is a sample Integration Object Item Attribute definition.
Is it possible to define a translator for an attribute let us say attribute available
in StockLevel. When the inbound requests inserts Integration Object data through odata2webservices API Post calls, the translator should get invoked and executes some business logic and updates the value of attribute (available
)
You can try to create custom Populator (see:
DefaultCollectionType2MapPopulator
) and insert it into thedefaultItemToIntegrationObjectMapConverter
. It is important to implement theisApplicable()
method correctly.