pfx-api:resetcolumn
Reset a column on a Pricefx object. This clears the values of the specified column across all records of the given object type. The method name is case-insensitive: both resetColumn and resetcolumn are accepted in the URI.
Parameters
|
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
|
ObjectType (enum) |
-- |
The Pricefx object type on which to reset the column (e.g., |
|
|
String |
-- |
The name of the column to reset (e.g., |
XML Route Examples
Reset a column on products
<route>
<from uri="direct:resetProductColumn"/>
<to uri="pfx-api:resetcolumn?objectType=P&resetColumnName=attribute5"/>
</route>
Reset a column on a Data Source
<route>
<from uri="direct:resetDSColumn"/>
<to uri="pfx-api:resetcolumn?objectType=DMDS&resetColumnName=attribute3"/>
</route>
Reset a column on customer extensions
<route>
<from uri="direct:resetCXColumn"/>
<to uri="pfx-api:resetColumn?objectType=CX&resetColumnName=attribute1"/>
</route>
Common Pitfalls
-
Both parameters are required: You must specify both
objectTypeandresetColumnName. Omitting either will cause the operation to fail. -
Irreversible operation: Resetting a column clears the values for all records of that object type. There is no undo. Verify the column name carefully before executing in production.
-
Column name must be valid: The
resetColumnNamemust correspond to an actual attribute on the object type (e.g.,attribute1throughattribute50for products). Invalid column names will result in an error.