younifyd
Menu

urlRedirectsCount

Count of redirects. Limited to a maximum of 10000 by default.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the urlRedirectsCount action (under Url).
  3. Fill in the fields below, then reference the result from later steps as {{urlredirectscount.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query UrlRedirectsCount($query: String, $savedSearchId: ID, $limit: Int) {
  urlRedirectsCount(query: $query, savedSearchId: $savedSearchId, limit: $limit) {
    count
    precision
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

querystring

A filter made up of terms, connectives, modifiers, and comparators. | name | type | description | acceptable_values | default_value | example_use | | ---- | ---- | ---- | ---- | ---- | ---- | | default | string | Filter by a case-insensitive search of multiple fields in a document. | | | - `query=Bob Norman`<br/> - `query=title:green hoodie` | | created_at | time | | id | id | Filter by `id` range. | | | - `id:1234`<br/> - `id:>=1234`<br/> - `id:<=1234` | | path | string | | target | string | You can apply one or more filters to a query. Learn more about [Shopify API search syntax](https://shopify.dev/api/usage/search-syntax).

savedSearchIdstring

The ID of an existing saved search. The search’s query string is used as the query argument. Refer to the [`SavedSearch`](https://shopify.dev/api/admin-graphql/latest/objects/savedsearch) object.

limitnumber

The upper bound on count value before returning a result. Use `null` to have no limit.

json
{
  "query": "string",
  "savedSearchId": "string",
  "limit": 0
}

Response

Read the result with {{urlredirectscount.response.data.data.urlRedirectsCount}}. If the API returns errors, the step fails and they are at {{urlredirectscount.response.data.errors}}.

countnumber
precisionstring

One ofEXACTAT_LEAST

Need more? See the Shopify guide for connection setup and behaviour shared by every action.

urlRedirectsCount — Shopify — Documentation