I am trying to pass the tracking number through from Shipstation using the order number/invoice number (Xero) to leave a note on the invoice.
I am getting an error on the last step and have no idea what is going wrong. Any help would be appreciated. Code is below.
Jon
{
“name”: “Shipstation Tracking >> Note in Xero Invoice”,
“flow”: [
{
“id”: 1,
“module”: “shipstation:listenForShipmentEventsDetailed”,
“version”: 1,
“parameters”: {
“IMTHOOK”: 1134633
},
“mapper”: {},
“metadata”: {
“designer”: {
“x”: 0,
“y”: 0
},
“restore”: {
“parameters”: {
“IMTHOOK”: {
“label”: “My ShipStation Shipment (with Item Info) webhook”,
“data”: {
“editable”: “true”
}
}
}
},
“parameters”: [
{
“name”: “IMTHOOK”,
“type”: “hook:shipstation4”,
“label”: “Webhook”,
“required”: true
}
]
}
},
{
“id”: 2,
“module”: “xero:SearchInvoice”,
“version”: 2,
“parameters”: {
“IMTCONN”: 3529629
},
“filter”: {
“name”: “”,
“conditions”: [
[
{
“a”: “{{1.trackingNumber}}”,
“o”: “exist”
},
{
“a”: “{{1.orderNumber}}”,
“o”: “exist”
}
]
]
},
“mapper”: {
“tenantId”: “e1ec6da7-215d-4401-8802-2331f6021fe9”,
“limit”: “250”,
“InvoiceNumbers”: “{{1.orderNumber}}”,
“createdByMyApp”: false,
“summaryOnly”: false
},
“metadata”: {
“designer”: {
“x”: 300,
“y”: 0
},
“restore”: {
“parameters”: {
“IMTCONN”: {
“label”: “Xero Dispensary”,
“data”: {
“scoped”: “true”,
“connection”: “xero3”
}
}
},
“expect”: {
“tenantId”: {
“mode”: “chose”,
“label”: “Mamedica Dispensary Limited”
},
“createdByMyApp”: {
“mode”: “chose”
},
“summaryOnly”: {
“mode”: “chose”
},
“type”: {
“mode”: “chose”,
“label”: “Empty”
}
}
},
“parameters”: [
{
“name”: “IMTCONN”,
“type”: “account:xero3”,
“label”: “Connection”,
“required”: true
}
],
“expect”: [
{
“name”: “tenantId”,
“type”: “select”,
“label”: “Organization”
},
{
“name”: “order”,
“type”: “text”,
“label”: “Order By”
},
{
“name”: “limit”,
“type”: “uinteger”,
“label”: “Limit”,
“required”: true
},
{
“name”: “IDs”,
“type”: “text”,
“label”: “Invoices IDs”
},
{
“name”: “InvoiceNumbers”,
“type”: “text”,
“label”: “Invoice Numbers”
},
{
“name”: “ContactIDs”,
“type”: “text”,
“label”: “Contact IDs”
},
{
“name”: “Statuses”,
“type”: “text”
},
{
“name”: “ModifiedAfter”,
“type”: “date”,
“label”: “Modified After”
},
{
“name”: “createdByMyApp”,
“type”: “boolean”,
“label”: “Created By My App”,
“required”: true
},
{
“name”: “summaryOnly”,
“type”: “boolean”,
“label”: “Summary Only”,
“required”: true
},
{
“name”: “type”,
“type”: “select”,
“label”: “Search By”,
“validate”: {
“enum”: [
“field”,
“query”
]
}
}
]
}
},
{
“id”: 5,
“module”: “xero:CreateHistoryNote”,
“version”: 2,
“parameters”: {
“IMTCONN”: 3529629
},
“mapper”: {
“tenantId”: “e1ec6da7-215d-4401-8802-2331f6021fe9”,
“Endpoint”: “Invoices”,
“ObjectID”: “{{2.InvoiceNumber}}”,
“Details”: “{{1.trackingNumber}}”
},
“metadata”: {
“designer”: {
“x”: 600,
“y”: 0
},
“restore”: {
“parameters”: {
“IMTCONN”: {
“label”: “Xero Dispensary”,
“data”: {
“scoped”: “true”,
“connection”: “xero3”
}
}
},
“expect”: {
“tenantId”: {
“mode”: “chose”,
“label”: “Mamedica Dispensary Limited”
},
“Endpoint”: {
“mode”: “edit”
}
}
},
“parameters”: [
{
“name”: “IMTCONN”,
“type”: “account:xero3”,
“label”: “Connection”,
“required”: true
}
],
“expect”: [
{
“name”: “tenantId”,
“type”: “select”,
“label”: “Organization”,
“required”: true
},
{
“name”: “Endpoint”,
“type”: “select”,
“label”: “Object”,
“required”: true,
“validate”: {
“enum”: [
“BankTransactions”,
“Contacts”,
“Invoices”,
“Items”,
“ManualJournals”,
“Payments”,
“PurchaseOrders”
]
}
},
{
“name”: “ObjectID”,
“type”: “uuid”,
“label”: “Object ID”,
“required”: true
},
{
“name”: “Details”,
“type”: “text”,
“required”: true
}
]
}
}
],
“metadata”: {
“instant”: false,
“version”: 1,
“scenario”: {
“roundtrips”: 1,
“maxErrors”: 3,
“autoCommit”: true,
“autoCommitTriggerLast”: true,
“sequential”: false,
“slots”: null,
“confidential”: false,
“dataloss”: false,
“dlq”: false,
“freshVariables”: false
},
“designer”: {
“orphans”:
},
“zone”: “eu2.make.com”
}
}