Editar

Compartilhar via


Copy an e-commerce site

This article describes how to copy an existing e-commerce site within or between e-commerce environments in Microsoft Dynamics 365 Commerce site builder.

Dynamics 365 Commerce supports copying or cloning sites as a self-serve operation in Commerce site builder. Sites can be copied within a single e-commerce environment or between two e-commerce environments. The user who initiates the site copy operation must be a tenant administrator in both the source and destination e-commerce environments.

The site copy operation copies all e-commerce content of the source site. This content includes pages, fragments, templates, URLs, and assets. Before a new site can be used, it must be initialized through the first run experience (FRE) process. Channels can be mapped and managed in site builder, at Site Settings > Channels.

The duration of the site copy operation depends primarily on the number of assets on the source site. For exceptionally large sites, we recommend that you consider using the environment copy operation instead. (This operation is also known as the data portability operation).

Note

  • The source site will be read-only for the duration of the site copy operation.
  • Only published versions of documents are copied over. If no versions have been published, only the latest versions are copied over.
  • Version history for content won't be available on the destination site.

Copy a site within an e-commerce environment

To copy a site within an e-commerce environment, follow these steps.

  1. Sign in to site builder for the environment where you want to perform the copy operation.
  2. Open the site list view by selecting Site switcher in the upper-right corner and then selecting Manage sites.
  3. Find the site that you want to copy or clone, and select it by selecting the checkbox next to the site name.
  4. On the command bar, select Copy site.
  5. In the Copy site flyout menu, in the New site name field, enter a name for the new site. The new site name must be unique in the e-commerce environment. The Source tenant and Source site fields are automatically set to the information for the current tenant and the selected site.
  6. Select Create copy.

After the information has been validated, a notification indicates that a new site copy job has been created. You can monitor the progress of the job in the right pane of the Tenant jobs page. When the copy operation has been successfully completed, the new site appears in the list of sites in site list view.

The following illustration shows an example of the Copy site flyout menu in site builder.

Copy site flyout menu in site builder.

Copy a site between two e-commerce environments

To copy a site between two e-commerce environments, follow these steps.

  1. Sign in to site builder for the destination e-commerce environment.
  2. On the command bar, select Copy site.
  3. In the Copy site flyout menu, in the New site name field, enter a name for the new site. The new site name must be unique in the e-commerce environment.
  4. In the Source tenant field, select the name of the source tenant.
  5. In the Source site field, select the source site.
  6. Select Create copy.

Note

Tenant administrator permissions are required for both the source and destination e-commerce environments.

After the information has been validated, a notification indicates that a new site copy job has been created. You can monitor the progress of the job in the right pane of the Tenant jobs page. When the copy operation has been successfully completed, the new site appears in the list of sites in site list view.

Map channels during the site copy operation (optional)

Source channels and locales can be mapped to destination channels and locales as part of the site copy operation. If the channel mapping is done as part of the site copy operation, initializing the site using the FRE process and configuring the channels in site settings are not required.

To map all the channels and locales "as is" (1-to-1) in site builder, follow these steps.

  1. Open the site list view by selecting Site switcher in the upper-right corner and then selecting Manage sites.
  2. Find the site that you want to copy or clone, and select it by selecting the checkbox next to the site name.
  3. On the command bar, select Copy site.
  4. In the Copy site flyout menu, enter values for New site name, Source tenant, and Source site (if not present already).
  5. Select Add channel mappings.
  6. In the Configure site channels and locales flyout menu, select Source channel, and then select the source channel.
  7. Select Destination channel and then select the same channel as the source channel.
  8. Select Add locale.
  9. Select Source locale, and then select the source locale.
  10. Select Destination locale, and then select the same locale as the source locale.
  11. For URL path, enter a unique URL path that is not currently used in the destination environment.
  12. Repeat steps 8-11 for each locale to be mapped for the channel.
  13. Select Apply.
  14. Repeat steps 6-11 for each source channel.
  15. Select Close.
  16. Review the configuration for accuracy, and then select Copy site.

Note

All source channels and locales must be mapped, and can only be mapped once.

Monitor the site copy operation

To monitor the progress of the site copy operation, follow these steps.

  1. Sign in to site builder for the destination e-commerce environment.
  2. In the left pane, select Tenant jobs.
  3. On the Tenant jobs page, find and select the site copy job in the list. A pane appears on the right, and shows the status and details of the selected job.

You can cancel a job that has a status of In progress. Select the job in the list, and then select Cancel on the command bar.

You can retry a job that has a status of Failed or Completed with errors. Select the job in the list, and then select Retry on the command bar.

Note

Processing of video assets might continue after a site copy job is completed.

The following illustration shows an example of the right pane of the Tenant jobs page in site builder.

Job details in the right pane of the Tenant jobs page in site builder.

Initialize a new site by using the FRE process

Before the new site can be used, it must be initialized through the FRE process.

To initialize a new site by using the FRE process, follow these steps.

  1. Sign in to site builder for the new site.
  2. Open the site list view by selecting Site switcher in the upper-right corner and then selecting Manage sites.
  3. Find and select the new site that you want to initialize.
  4. In the Setup your site dialog box, in the Select a domain field, select a domain. All domains that were associated with the e-commerce environment during initialization are available for selection.
  5. In the Select a default channel field, select the associated online store channel. The selected channel will provide assortments and other information that is stored in Commerce headquarters.
  6. In the Select a default language field, select the default authoring language. All languages that were configured for the selected online store channel are available for selection.
  7. In the Path field, the value consists of the base domain and an optional URL path that you can enter. You can leave the URL path blank if the channel will be served from the domain root, or if you want to enter this information later in the channel configuration view in site builder. The site path must be unique in the e-commerce environment.
  8. Select OK. The site is initialized with the information that you provided, and you're sent to the site management view.

The following illustration shows an example of the Setup your site dialog box in site builder.

Setup your site dialog box in site builder.

Additional resources

Configure your domain name

Deploy a new e-commerce tenant

Associate a Dynamics 365 Commerce site with an online channel

Manage robots.txt files

Upload URL redirects in bulk

Set up a B2C tenant in Commerce

Set up custom pages for user logins

Configure multiple B2C tenants in a Commerce environment

Add support for a content delivery network (CDN)

Enable location-based store detection