> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.shopify.reports.RunReport

- Component: `appmixer.shopify.reports.RunReport`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.shopify 4.1.0](https://connectors.appmixer.com/connector/appmixer.shopify/4.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.shopify/4.1.0/component/appmixer.shopify.reports.RunReport>

Run a ShopifyQL query against the shop's analytics and return the resulting table (columns and rows).

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| ShopifyQL Query (`query`) | textarea | The ShopifyQL query to run, e.g. FROM sales SHOW total_sales SINCE -3m UNTIL today GROUP BY month. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Columns (`columns`) | array | - |
| Rows (`rows`) | array | - |
| Row Count (`rowCount`) | integer | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.shopify.reports.RunReport",
  "description": "Run a ShopifyQL query against the shop's analytics and return the resulting table (columns and rows).",
  "author": "Appmixer <info@appmixer.com>",
  "private": false,
  "auth": {
    "service": "appmixer:shopify",
    "scope": [
      "read_reports"
    ]
  },
  "quota": {
    "manager": "appmixer:shopify",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "maxLength": 16384
          }
        },
        "required": [
          "query"
        ]
      },
      "inspector": {
        "inputs": {
          "query": {
            "type": "textarea",
            "label": "ShopifyQL Query",
            "index": 0,
            "tooltip": "The ShopifyQL query to run, e.g. FROM sales SHOW total_sales SINCE -3m UNTIL today GROUP BY month."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "columns": {
            "type": "array",
            "title": "Columns",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "title": "Name",
                  "example": "total_sales"
                },
                "displayName": {
                  "type": "string",
                  "title": "Display Name",
                  "example": "Total sales"
                },
                "dataType": {
                  "type": "string",
                  "title": "Data Type",
                  "example": "MONEY"
                }
              }
            },
            "example": [
              {
                "name": "total_sales",
                "displayName": "Total sales",
                "dataType": "MONEY"
              }
            ]
          },
          "rows": {
            "type": "array",
            "title": "Rows",
            "items": {
              "type": "object"
            },
            "example": [
              {
                "total_sales": "199.98"
              }
            ]
          },
          "rowCount": {
            "type": "integer",
            "title": "Row Count",
            "example": 1
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
