[ { "label": "Export disputes above a pre-defined amount to Google Sheet", "trigger_type": [ "dispute_created", "dispute_updated" ], "object_type": "dispute", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "dispute.amount", "settings": { "operator": "gt", "value": "{{ workflow_vars[\"dispute_limit\"].value }}", "token_object_type": "dispute", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "google_sheets_v2", "settings": { "token_object_type": "dispute", "url": "[CLICK TO EDIT]", "title": null, "settings": { "tab": "0", "update_mode": "update", "primary_key": "" }, "cells": { "0": { "weight": "1", "value": "{{ dispute.id }}" }, "7": { "weight": "2", "value": "{{ dispute.status }}" }, "1": { "weight": "3", "value": "{{ dispute.order.name }}" }, "2": { "weight": "4", "value": "{{ dispute.order.email }}" }, "3": { "weight": "5", "value": "{{ dispute.currency }}" }, "4": { "weight": "6", "value": "{{ dispute.amount }}" }, "5": { "weight": "7", "value": "{{ dispute.network_reason_code }}" }, "6": { "weight": "8", "value": "{{ dispute.reason }}" }, "8": { "weight": "9", "value": "{{ dispute.type }}" } }, "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "" }, "weight": 999, "target_key": "dispute" } } } }, "shared_workflow_id": 70205 }, "description": "This automation is fired when a dispute is created or updated. If the dispute is above the pre-defined amount, the dispute record is added or updated to the Google sheet record. ", "variables": { "dispute_limit": { "label": "Dispute Limit", "machine_name": "dispute_limit", "type": "triggers_number", "settings": { "can_be_disabled": true, "disabled": false, "attributes": { "width": null, "bulk_ops_editable": 1, "input_instructions": "Dispute limit in USD", "description": "", "step": "", "default_value": "" }, "weight": 1, "validations": [], "conditions": [] } } } } ]