younifyd
Menu

job

The status of a background job started by an async mutation (e.g. a bulk delete) — poll until `done`.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the job action (under Job).
  3. Fill in the fields below, then reference the result from later steps as {{job.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 Job($id: ID!) {
  job(id: $id) {
    done
    id
    query {
      appDiscountTypes {
        app
        appBridge
        appKey
        description
        discountClass
        discountClasses
        functionId
        targetType
        title
      }
      availableBackupRegions {
        id
        name
      }
      availableCarrierServices {
        carrierService
        locations
      }
      availableLocales {
        isoCode
        name
      }
      backupRegion {
        id
        name
      }
      businessEntities {
        address
        archived
        companyName
        displayName
        id
        legalEntityId
        primary
        shopifyPaymentsAccount
      }
      catalogOperations {
        id
        processedRowCount
        rowCount
        status
      }
      collectionConditionMetafieldDefinitions {
        description
        id
        key
        name
        namespace
        ownerType
        type
        validations
      }
      collectionRulesConditions {
        allowedRelations
        defaultRelation
        ruleObject
        ruleType
      }
      consentPolicyRegions {
        countryCode
        regionCode
      }
      currentAppInstallation {
        accessScopes
        activeSubscriptions
        app
        channel
        id
        launchUrl
        publication
        subscriptions
        uninstallUrl
      }
      currentStaffMember {
        accountType
        active
        email
        exists
        firstName
        id
        initials
        isShopOwner
        lastName
        locale
        name
        phone
        privateData
      }
      deliveryPromiseSettings {
        deliveryDatesEnabled
        processingTime
      }
      financeAppAccessPolicy {
        access
      }
      financeKycInformation {
        businessAddress
        businessType
        industry
        legalName
        shopOwner
        taxIdentification
      }
      fulfillmentConstraintRules {
        deliveryMethodTypes
        function
        id
      }
      giftCardConfiguration {
        expirationConfiguration
        issueLimit
        purchaseLimit
      }
      inventoryProperties {
        quantityNames
      }
      locationsAvailableForDeliveryProfiles {
        activatable
        address
        addressVerified
        createdAt
        deactivatable
        deactivatedAt
        deletable
        fulfillmentService
        fulfillsOnlineOrders
        hasActiveInventory
        hasUnfulfilledOrders
        id
        isActive
        isFulfillmentService
        isPrimary
        legacyResourceId
        localPickupSettingsV2
        name
        shipsInventory
        suggestedAddresses
        updatedAt
      }
      metafieldDefinitionTypes {
        category
        name
        supportedValidations
        supportsDefinitionMigrations
        valueType
      }
      onlineStore {
        passwordProtection
      }
      pendingOrdersCount {
        count
        precision
      }
      primaryMarket {
        catalogsCount
        conditions
        currencySettings
        delivery
        discountsCount
        enabled
        handle
        id
        name
        priceInclusions
        priceList
        primary
        status
        type
        webPresence
      }
      privacySettings {
        banner
        dataSaleOptOutPage
        privacyPolicy
      }
      publicApiVersions {
        displayName
        handle
        supported
      }
      serverPixel {
        id
        status
        webhookEndpointAddress
      }
      shop {
        accountOwner
        alerts
        allProductCategories
        allProductCategoriesList
        analyticsToken
        billingAddress
        channelDefinitionsForInstalledChannels
        checkoutApiSupported
        contactEmail
        countriesInShippingZones
        createdAt
        currencyCode
        currencyFormats
        customerAccounts
        customerAccountsV2
        description
        domains
        email
        enabledPresentmentCurrencies
        entitlements
        features
        fulfillmentServices
        ianaTimezone
        id
        limitedPendingOrderCount
        marketingSmsConsentEnabledAtCheckout
        merchantApprovalSignals
        myshopifyDomain
        name
        navigationSettings
        orderNumberFormatPrefix
        orderNumberFormatSuffix
        paymentSettings
        plan
        primaryDomain
        publicationCount
        resourceLimits
        richTextEditorUrl
        searchFilters
        setupRequired
        shipsToCountries
        shopAddress
        shopOwnerName
        shopPolicies
        storefrontUrl
        taxShipping
        taxesIncluded
        timezoneAbbreviation
        timezoneOffset
        timezoneOffsetMinutes
        transactionalSmsDisabled
        unitSystem
        updatedAt
        url
        weightUnit
      }
      shopBillingPreferences {
        currency
      }
      shopifyPaymentsAccount {
        accountOpenerName
        activated
        balance
        chargeStatementDescriptor
        chargeStatementDescriptors
        country
        defaultCurrency
        id
        onboardable
        payoutSchedule
        payoutStatementDescriptor
      }
      storeCreditConfiguration {
        storeCreditEnabled
      }
      taxonomy
    }
  }
}

Variables

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

idstringrequired

ID of the job to query.

json
{
  "id": "string"
}

Response

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

doneboolean
idstring
queryobject
appDiscountTypesarray<object>
availableBackupRegionsarray<object>
availableCarrierServicesarray<object>
availableLocalesarray<object>
backupRegionobject2 fields
businessEntitiesarray<object>
catalogOperationsarray<object>
collectionConditionMetafieldDefinitionsarray<object>
collectionRulesConditionsarray<object>
consentPolicyRegionsarray<object>
currentAppInstallationobject9 fields
currentStaffMemberobject13 fields
deliveryPromiseSettingsobject2 fields
financeAppAccessPolicyobject1 fields
financeKycInformationobject6 fields
fulfillmentConstraintRulesarray<object>
giftCardConfigurationobject3 fields
inventoryPropertiesobject1 fields
locationsAvailableForDeliveryProfilesarray<object>
metafieldDefinitionTypesarray<object>
onlineStoreobject1 fields
pendingOrdersCountobject2 fields
primaryMarketobject15 fields
privacySettingsobject3 fields
publicApiVersionsarray<object>
serverPixelobject3 fields
shopobject40 fields
shopBillingPreferencesobject1 fields
shopifyPaymentsAccountobject11 fields
storeCreditConfigurationobject1 fields
taxonomyobject

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