---
title: "execute Method"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.commands.commandmanager.execute.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["6.15.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# execute Method

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
### Callable
 
- execute(name:  any, args?:  any ) :  Promise &lt; void &gt;

- Executes the Translate and Resize operations.
  
 - example
     - ```
    const ids = (await editor.getSelectedItems()).map(item => item.id);
    
    const args = {
        translateX: 108,
        translateY: 0,
        itemIds: ids
    };
    // Moves the selected items 1.5 inches horizontally.
    editor.commandManager.execute("translateItems", args);
    ```

#### Parameters

    - ##### name: any 
  
        The name of the operation, either `"translateItems"` or `"resize"`.
    - #####  Optional args: any 
  
        An object defining arguments of the operation. The current implementation supports [IExternalResizeArgs](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.commands.iexternalresizeargs.htm.md) and [IExternalTranslateItemCommandArgs](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.commands.iexternaltranslateitemcommandargs.htm.md).

#### Returns Promise &lt; void &gt;
