Exporting / Importing custom resources

Reading time: 10 min - Public: Functional administrator

Introduction

This tutorial explains how to export and import a package of custom resources from a development environment to a production environment.

This example is aimed at functional administrators linked to Adobe Campaign.

The prerequisites are:

  • One or multiple custom resources that are available and published. In addition, you must have defined a unique key for these resources because the automatic primary keys are not exported in the packages. The resource can therefore have a primary key and an additional unique key to guarantee the uniqueness of the records.
  • The necessary rights to create and export a package.

See also:

1. Exporting the structure

In this section, we are going to carry out a first package export which details the physical structure of the custom resource data.

This example has two custom resources: Products and Orders.

Go to the Administration > Deployment > Package exports page to create a new package to export the Custom resource (cusResource) filtered with the two custom resources, "Products" and "Orders".

You can get further details by clicking the Read more button.

Read More

2. Exporting the data

This second export will allow us to export the data from the Products and Orders custom resources.

Based on the same type of export as the structure export, you are going to create a second package that contains the data.

Read More

3. Importing the structure

Connect to the target instance on which you want to import the newly created packages.

Select the first package that you created, containing the data structure. Once the import has been carried out, start publication.

The menu entries corresponding to the package installed are going to be inserted into the Client data menu.

Read More

4. Importing the data

In this section, we are going to import the data linked to the package installed on the instance in the previous step.

In the same way as for the previous step, it is split into two parts: importing the package and publishing.

You can get further details by clicking the Read more button.

Read More

Any question? Visit our forum and ask the community.

Follow Adobe Marketing Cloud on the social networks

Copyright © Adobe 2017

Exporting the structure

Close

Exporting the structure

  1. In the Package exports page, click Create to create a new package.
  2. Complete the label with Export structure of my resources then click Create element in the Export content tab.

  3. Search for and select the Custom resource (cusResource).

  4. Configure the details of the Custom resource by selecting the two resources, Products and Orders, in the filtering conditions.
  5. Make sure that you don't forget to change the logical operator. The value must be set to OR so that the structure of the products resource and the orders resource are integrated into the package.

  6. Confirm and save the package definition.

You can now click Start export.

The package generated is available in the Downloads folder. The name of the zip file is randomly generated. You can rename it.

Exporting the data

Close

Exporting the data

  1. In the Package exports page, click Create to create a new package.
  2. Complete the label with Export data of my resources then click Create element in the Export content tab.
  3. Search for and select the Products resource.

  4. Configure an advanced filtering condition with @Label IS NOT NULL

    and check the count.

  5. Repeat the same operation for the Orders custom resource.

  6. Confirm and save the package definition.

You can now click Start export.

The package generated is available in the Downloads folder. The name of the zip file is randomly generated. You can rename it.

Importing the structure

Close

Importing the structure

Importing the package

  1. Go to the Administration > Deployment > Package imports page to create a new package to import the file from the first export.
  2. Drag and drop the structure file into the zone provided for this purpose. The formats accepted are ZIP or XML.

  3. Modify the label, for example Import structure, then click Save.
  4. Click Start import.

Publish

  1. Go to the Administration > Development > Publication page.
  2. Click Prepare publication then Publish to update the instance with the data from the new custom resources.

Importing the data

Close

Importing the data

Importing the package

  1. Go to the Administration > Deployment > Package imports page to create a new package to import the file containing the data.
  2. Drag and drop the data file into the zone provided for this purpose. The formats accepted are ZIP or XML.
  3. Modify the label, for example Import data, then click Save.

  4. Click Start import.

Publish

  1. Go to the Administration > Development > Publication page.
  2. Click Prepare publication then Publish to update the instance with the data from the custom resources.