logo

Copy profiles

Using the copy profiles feature, you can modify entities by copying the content from a source entity to a target entity.

A copy profile is a configuration file that lists the changes to apply to the target entity based on the source entity. This configuration file describes the methods to perform on each entity member (properties and relations) of the source to generate the target entity.

You can apply the following methods to entity members:

  • Keep - applies the member value of the source entity (default method).
  • Ignore - ignores the source member value and keeps the member value of the target entity.
  • Remove - removes the member in the target entity.
  • Overwrite - overwrites the value on the target page.
  • Append - adds a new reference to a member value of type array in the target entity.

To view copy profiles:

  1. On the menu bar, click Manage .
  2. On the Manage page, click Copy profiles.

The following example shows an excerpt of a copy profile:

{
  "properties": [
    {
      "method": "Keep",
      "name": "ProductName"
    },
    {
      "method": "Ignore",
      "name": "PublishStatus"
    },
    ...
    {
      "method": "Overwrite",
      "value": true,
      "name": "M.PCM.Product.IsVariant"
    },
  ],
  "relations": [
    {
      "method": "Keep",
      "name": "PCMProductFamilyToProduct"
    },
    ...
    {
      "method": "Remove",
      "name": "ProductToProductDraft"
    },
    {
      "method": "Keep",
      "name": "DraftLifeCycleStatusToProduct"
    }
  ]
}

Create a new copy profile

To create a new copy profile:

  1. On the menu bar, click Manage .
  2. On the Manage page, click Copy profiles.
  3. On the Copy profiles page, click + Copy profile.
  4. Set a Name and the entity Definition target.
  5. Click Save. A default configuration is automatically created.

Edit an existing copy profile

To edit an existing copy profile:

  1. On the menu bar, click Manage .
  2. On the Manage page, click Copy profiles.
  3. On the Copy profiles page, on the desired copy profile, click .
  4. Apply the necessary changes.
  5. To confirm your changes, click Save.

Can we improve this article ? Provide feedback