---
title: "Count Mass Action Items"
method: POST
path: "/pricegridmanager.massactioncount/{id}"
tags: ["Live Price Grids"]
---

# Count Mass Action Items

`POST /pricegridmanager.massactioncount/{id}`

Returns a number of Price Grid Items that would be affected by the mass action operation.<p>
`totalRows` value = number of affected items.

---

Required Permission| Roles with the Required Permission |
---------|----------|
 PRICEGRID_UPDATE | Edit LPG & Add Products (`PB_PRICEGRIDEDITOR_ADD_SKU`), Edit LPG (`PB_PRICEGRIDEDITOR`), Administer LPG (`PB_PRICEGRIDS`)

## Request body

- object
  - `data` object, required
    - `_constructor` string, required
    - `operator` string, required
    - `criteria` object[], required
      - `fieldName` string, required
      - `operator` 'equals' | 'iEquals' | 'notEqual' | 'iNotEqual' | 'isNull' | 'notNull' | 'contains' | 'iContains' | 'containsPattern' | 'iContainsPattern' | 'notContains' | 'iNotContains' | 'startsWith' | 'iStartsWith' | 'notStartsWith' | 'iNotStartsWith' | 'endsWith' | 'iEndsWith' | 'notEndsWith' | 'iNotEndsWith' | 'iBetween' | 'iBetweenInclusive' | 'inSet' | 'notInSet', required — Specify an operator of the filter criteria.
      - `value` string, required
    - `workflowAction` string, required

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` unknown
    - `totalRows` number — The number of affected items by the mass action operation.
    - `status` number

---

[API](https://skmtc.net/pricefx/apis/the-pricefx-backend-api.md) · [All operations](https://skmtc.net/pricefx/apis/the-pricefx-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pricefx/the-pricefx-backend-api/versions/0850b5d6be73/schema)
