pfx-api:internalCopy
Internal copy (duplicate) of a Pricefx entity such as a Price List, Price Grid, or other supported object.
URI Format
pfx-api:internalCopy?label=CopiedEntityName
Alias: internalcopy
Parameters
|
Parameter |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
String |
Yes |
-- |
Label (name) for the newly created copy of the entity. |
|
|
ObjectType |
No |
-- |
The Pricefx object type to copy (e.g., |
|
|
String |
No |
-- |
The typedId of the entity to copy. Can also be provided in the exchange body. |
XML Route Examples
Copy (duplicate) a Price List:
<route>
<from uri="direct:copyPriceList"/>
<to uri="pfx-api:internalCopy?objectType=PL&label=CopiedPriceList"/>
</route>
Copy a Price Grid with typedId set dynamically:
<route>
<from uri="direct:copyPriceGrid"/>
<setHeader name="typedId">
<simple>${body[typedId]}</simple>
</setHeader>
<to uri="pfx-api:internalCopy?objectType=PG&label=CopiedPriceGrid"/>
</route>
Common Pitfalls
-
The
labelparameter is mandatory. Without it, the copy operation will fail. -
Ensure the source entity exists and the
typedIdis valid before triggering the copy. -
The copied entity is created as a new independent object; subsequent changes to the original do not affect the copy.