younifyd
Menu

translatableResource

Retrieves a resource that has translatable fields. Returns the resource's Translation objects for different locales and markets, along with the original TranslatableContent and digest values needed to register new…

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the translatableResource action (under Translatable).
  3. Fill in the fields below, then reference the result from later steps as {{translatableresource.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 TranslatableResource($resourceId: ID!) {
  translatableResource(resourceId: $resourceId) {
    resourceId
  }
}

Variables

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

resourceIdstringrequired

Find a translatable resource by ID.

json
{
  "resourceId": "string"
}

Response

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

resourceIdstring

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

translatableResource — Shopify — Documentation