DuplicateTreeAction and setting some properties to a desired value

To copy all fields of a concept there is a DuplicateTreeAction in the Tree copy plugin
For example you want to copy all fields of a product into a new product.
But you also want to supply the product with a new name and code and you want to wipe out the assigned default_purchase_price_list item
Add the Tree copy plugin to your component
Create a proces ‘Product - duplicate’ with the parameters
‘product_to_duplicate’: type Products
‘new_name’ : type String
‘new_code’: type String
Define the DuplicateTreeAction
In the Tab Plugin Configuration
Select the Root object type: Products
In The Override fields: select Add new
Override field: name, Override key: new_name
Override field: code, Override key: new_code
Override field: default_purchase_price_list_item, Override value: =null


The two override keys are defined in the Tab parameters
As a literallist of two tuples in which the two parameters are assigned.

You also have the possibility to copy one or more childobjects.
The DuplicateTreeAction returns the duplicated object.