Snippets Collections
{
  "name": "New Workflow",
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "dataType": "boolean",
        "value1": "={{Object.keys($items()[0].json).length === 0}}",
        "rules": {
          "rules": [
            {
              "value2": true
            },
            {
              "output": 1
            }
          ]
        }
      },
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        520,
        300
      ],
      "typeVersion": 1
    }
  ],
  "connections": {},
  "active": false,
  "settings": {},
  "tags": []
}
^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$
POST https://api-dm.yealink.com:8445/api/open/v1/manager/device/getComplexList
X-Ca-Key: <ca-key>
X-Ca-Nonce: <Nonce>
X-Ca-Timestamp: 1641913570125
X-Ca-Signature: <ca-sig>
Content-MD5: <content-sig>
Content-Type: application/json
Content-Length: 101

{"regionIds": ["<region-ids>"], "modelIds": ["<model-ids>"]}
{{$node["Webhook"].json["query"]["email"].split(";")[0]}}
{{JSON.parse('{"content-type": "application/xml"}')}}
{{$node["Read Domain Subscribers"].json["user"].length===5&&$node["Read Domain Subscribers"].json["user"].substr(2,3)<=200&&$node["Read Domain Subscribers"].json["srv_code"]!="" ? $node["Read Domain Subscribers"].json["user"].substr(2,3) : $node["Read Domain Subscribers"].json["user"].length===4&&$node["Read Domain Subscribers"].json["user"].substr(1,3)<=200&&$node["Read Domain Subscribers"].json["srv_code"]!="" ? $node["Read Domain Subscribers"].json["user"].substr(1,3) : NULL}}
{{(+new Date).toString(36).slice(-5) + Math.random().toString(36).substr(2, 5)}}{{(+new Date).toString(36).slice(-5) + Math.random().toString(36).substr(2, 5)}}
sudo -i
cd /n8n
pm2 stop n8n
npm install -g n8n@latest
pm2 restart ecosystem.config.js

Bret notes:
it starts if i do it manually 
i guess i have to manually start it first
pm2 start n8n then restart as pm2 start ecosystem.config.js
i think im missing that from my config file

#Converts time to  HH:MM:SS
{{new Date(112*1000).toISOString().substr(11,8)}}
#Converts time to  MM:SS, useful if seconds is <3600
{{new Date(112*1000).toISOString().substr(14,5)}}
const results = []

for (const item of items[0].json["users"]) {

      results.push({
        json: item
      })
    
}

return results;
const results = []

for (const item of items[0].json["tickets"]) {

      results.push({
        json: item
      })
    
}

return results;
[{"name":"{{$node["Function"].json["data_object"][0]["description"]}}", "toplevel_name":"Areas", "customfields": [{"id": 164, "name": "CFcustomerdomain", "value": "Snapcom"},  {"id": 165,"name": "CFactivecalls", "value": "20"}]}]
{{new Date($node["IF"].json["0"]["time_answer"]*1000).toLocaleString('en-US',{ timeZone: 'America/Chicago' })}}	
star

Wed Jun 22 2022 03:44:40 GMT+0000 (UTC) https://community.n8n.io/t/how-to-check-for-empty-node-output/10022/2

#n8n #json
star

Thu Jan 27 2022 17:34:27 GMT+0000 (UTC) https://ihateregex.io/expr/phone/

#n8n #json #bandwidth
star

Tue Jan 11 2022 15:31:30 GMT+0000 (UTC)

#n8n #json #bandwidth
star

Tue Sep 28 2021 19:30:34 GMT+0000 (UTC)

#n8n #halo #json
star

Tue Sep 28 2021 17:34:29 GMT+0000 (UTC)

#n8n #halo #json
star

Tue Sep 28 2021 17:33:44 GMT+0000 (UTC)

#n8n #halo #json
star

Wed Sep 22 2021 12:50:49 GMT+0000 (UTC)

#n8n #halo #json
star

Mon Aug 23 2021 16:58:23 GMT+0000 (UTC)

#n8n #halo #json
star

Thu Aug 19 2021 16:56:17 GMT+0000 (UTC) https://community.n8n.io/t/remove-parent-field-in-json-response/2106/4

#n8n #halo #json #zendesk
star

Wed Aug 04 2021 15:05:04 GMT+0000 (UTC)

#n8n #halo #json
star

Fri Jul 16 2021 17:36:05 GMT+0000 (UTC)

#n8n

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension