Snippets Collections
{{$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
docker pull n8nio/n8n
cd /home/ubuntu
docker-compose stop
docker-compose rm
confirm yes
docker-compose up -d

#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

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