[ { "label": "Track all updates to inventory in a Google Sheet", "trigger_type": [ "inventory_item_updated" ], "object_type": "inventory_item", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [], "actions": [ { "type": "google_sheets_v2", "settings": { "token_object_type": "inventory_item", "url": "[CLICK TO EDIT]", "settings": { "tab": "0", "update_mode": "", "primary_key": "" }, "cells": { "2": { "weight": "1", "value": "{{ inventory_item.id }}" }, "4": { "weight": "2", "value": "{{ inventory_item.variant.product.title }} {% if inventory_item.variant.title != \"Default Title\"%}-{{ inventory_item.variant.title }}{% endif %}" }, "1": { "weight": "3", "value": "{{ inventory_item.sku }}" }, "0": { "weight": "4", "value": "{{ inventory_item.variant.inventory_policy }}" }, "3": { "weight": "5", "value": "Last Update: {{ \"now\"|date(\"m\/d\/Y - g:i a\") }}" } }, "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "" }, "weight": 999, "target_key": "inventory_item" } ] } ], "shared_workflow_id": 7383 }, "description": "This workflow fires when an inventory item is updated. The workflow is configured to add a new row to a Google Sheet with the current information about the inventory item, at the time of the update." } ]