---
title: "getVariableItems Method"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.product.getvariableitems.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/).

# getVariableItems Method

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
### Callable
 
- getVariableItems( ) :  Promise &lt; [IVariable](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.ivariable.htm.md) [] &gt;

- Lists all variable items in the product.
  
 - example
     - ```
    editor.getProduct()
        // If we have successfully obtained the product.
        .then(function (product) {
            return product.getVariableItems();
        })
        // If we have successfully obtained an item list.
        .then(function (items) {
            if (items.length)
                items.forEach(function (item) {
                    console.log(item.name);
                });
            else
                console.log("This product contains no variable items.");
        });
    ```

#### Returns Promise &lt; IVariable [] &gt;
 
    An array of variable items. The **isVariable** property of these design elements is set to `true`. Also, this array contains in-string and interpolation placeholders.
