Fri Jul 16 2021 17:36:05 GMT+0000 (Coordinated Universal Time)
Saved by @jhambach #n8n
{{new Date($node["IF"].json["0"]["time_answer"]*1000).toLocaleString('en-US',{ timeZone: 'America/Chicago' })}}
#n8n
#n8n #halo #json
[{"name":"{{$node["Function"].json["data_object"][0]["description"]}}", "toplevel_name":"Areas", "customfields": [{"id": 164, "name": "CFcustomerdomain", "value": "Snapcom"}, {"id": 165,"name": "CFactivecalls", "value": "20"}]}]
#n8n #halo #json #zendesk
const results = [] for (const item of items[0].json["tickets"]) { results.push({ json: item }) } return results;
const results = [] for (const item of items[0].json["users"]) { results.push({ json: item }) } return results;
#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)}}
{{(+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)}}
{{$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}}
#n8n #json #bandwidth
{{JSON.parse('{"content-type": "application/xml"}')}}
.substring(5,15)
{{$node["Webhook"].json["query"]["email"].split(";")[0]}}
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>"]}
^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$
/[^@]*$/g
#n8n #json
{ "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": [] }
#n8n #json #sip #phone #number
.match(/(\d+)(?=\D\@)|(\d+)(?=\@)/g)[0]
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments