Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

720 B
Raw Blame
import { createAction } from '@activepieces/pieces-framework';
import { shopifyAuth } from '../..';
import { getLocations } from '../common';

export const getLocationsAction = createAction({
  auth: shopifyAuth,
  name: 'get_locations',
  classification: 'SEARCH',
  displayName: 'Get Locations',
  description: 'Get every location in the store.',
  audience: 'both',
  aiMetadata: { description: 'List all store locations (warehouses, retail outlets) configured in Shopify, with no input required. Use to discover location IDs needed by inventory actions such as Adjust Inventory Level. Read-only and idempotent.', idempotent: true },
  props: {},
  async run({ auth }) {
    return await getLocations(auth);
  },
});