---
title: "au-widget-design-editor/Commands/duplicate-surfaces-command | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.duplicate-surfaces-command/"
---

# au-widget-design-editor/Commands/duplicate-surfaces-command

> A command that duplicates one surface to several other surfaces.

## Classes

### DuplicateSurfacesCommand

```json
{
  "type": "design-editor",
  "name": "editor",
  "params": {
    "initial": { ... },
    "duplicateSurfaces": `[{
        "surfaceToDuplicateId": 0,
        "surfacesToChangeIds": [ 1 ]
    }]`
  }
}
```

#### Extends

- [`DesignEditorWidgetCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.command.md#abstract-designeditorwidgetcommand)

#### Methods

##### execute()

```ts
execute(params): Promise<void>;
```

Executes this command.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `params` | [`IDuplicateSurfacesCommandDefinition`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.IAuWidgetDesignEditor.md#iduplicatesurfacescommanddefinition) | Parameters for the command. |

###### Returns

`Promise`\<`void`\>

###### Overrides

[`DesignEditorWidgetCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.command.md#abstract-designeditorwidgetcommand).[`execute`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.command.md#execute)
