Last active
March 5, 2024 16:36
-
-
Save jalakoo/089e4b12bc709374f13720a17202c242 to your computer and use it in GitHub Desktop.
make.com -> neo4j | Asana | All Webhooks | Task + Assignee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Webooks - Asana Tasks", | |
"flow": [ | |
{ | |
"id": 15, | |
"module": "asana:WatchProjectTask", | |
"version": 2, | |
"parameters": { | |
"__IMTHOOK__": 1168829 | |
}, | |
"mapper": {}, | |
"metadata": { | |
"designer": { | |
"x": 0, | |
"y": 450 | |
}, | |
"restore": { | |
"parameters": { | |
"__IMTHOOK__": { | |
"data": { | |
"editable": "false" | |
}, | |
"label": "DevRel Events 2024" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "__IMTHOOK__", | |
"type": "hook:asana", | |
"label": "Webhook", | |
"required": true | |
} | |
] | |
} | |
}, | |
{ | |
"id": 17, | |
"module": "builtin:BasicRouter", | |
"version": 1, | |
"mapper": null, | |
"metadata": { | |
"designer": { | |
"x": 300, | |
"y": 450 | |
} | |
}, | |
"routes": [ | |
{ | |
"flow": [ | |
{ | |
"id": 16, | |
"module": "asana:GetTask", | |
"version": 2, | |
"parameters": { | |
"__IMTCONN__": 2219377 | |
}, | |
"filter": { | |
"name": "", | |
"conditions": [ | |
[ | |
{ | |
"a": "{{15.resource.resource_type}}", | |
"b": "task", | |
"o": "text:equal" | |
}, | |
{ | |
"a": "{{15.action}}", | |
"b": "deleted", | |
"o": "text:notequal:ci" | |
} | |
] | |
] | |
}, | |
"mapper": { | |
"task_gid": "{{15.resource.gid}}", | |
"selectOrMap": "map" | |
}, | |
"metadata": { | |
"designer": { | |
"x": 600, | |
"y": 450 | |
}, | |
"restore": { | |
"expect": { | |
"selectOrMap": { | |
"label": "Enter manually" | |
} | |
}, | |
"parameters": { | |
"__IMTCONN__": { | |
"data": { | |
"scoped": "true", | |
"connection": "asana" | |
}, | |
"label": "My Asana connection ([email protected])" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "__IMTCONN__", | |
"type": "account:asana", | |
"label": "Connection", | |
"required": true | |
} | |
], | |
"expect": [ | |
{ | |
"name": "selectOrMap", | |
"type": "select", | |
"label": "Enter a Task ID", | |
"required": true, | |
"validate": { | |
"enum": [ | |
"map", | |
"select" | |
] | |
} | |
}, | |
{ | |
"name": "task_gid", | |
"type": "text", | |
"label": "Task ID", | |
"required": true | |
} | |
] | |
} | |
}, | |
{ | |
"id": 7, | |
"module": "builtin:BasicRouter", | |
"version": 1, | |
"mapper": null, | |
"metadata": { | |
"designer": { | |
"x": 900, | |
"y": 450 | |
} | |
}, | |
"routes": [ | |
{ | |
"flow": [ | |
{ | |
"id": 8, | |
"module": "json:AggregateToJSON", | |
"version": 1, | |
"parameters": { | |
"type": 114128, | |
"space": "", | |
"feeder": 16 | |
}, | |
"filter": { | |
"name": "", | |
"conditions": [ | |
[ | |
{ | |
"a": "{{16.assignee}}", | |
"o": "exist" | |
} | |
] | |
] | |
}, | |
"mapper": { | |
"gid": "{{16.assignee.gid}}", | |
"name": "{{16.assignee.name}}", | |
"email": "" | |
}, | |
"metadata": { | |
"designer": { | |
"x": 1200, | |
"y": 0 | |
}, | |
"restore": { | |
"extra": { | |
"feeder": { | |
"label": "Asana - Get a Task [16]" | |
} | |
}, | |
"parameters": { | |
"type": { | |
"label": "Employee" | |
}, | |
"space": { | |
"label": "Empty" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "type", | |
"type": "udt", | |
"label": "Data structure", | |
"required": true | |
}, | |
{ | |
"name": "space", | |
"type": "select", | |
"label": "Indentation", | |
"validate": { | |
"enum": [ | |
"tab", | |
"2", | |
"4" | |
] | |
} | |
} | |
], | |
"expect": [ | |
{ | |
"name": "gid", | |
"type": "text", | |
"label": null | |
}, | |
{ | |
"name": "name", | |
"type": "text", | |
"label": null | |
}, | |
{ | |
"name": "email", | |
"type": "text", | |
"label": null | |
} | |
] | |
} | |
}, | |
{ | |
"id": 11, | |
"module": "util:SetVariable2", | |
"version": 1, | |
"parameters": {}, | |
"mapper": { | |
"name": "Assignees", | |
"scope": "roundtrip", | |
"value": "{{8.json}}" | |
}, | |
"metadata": { | |
"designer": { | |
"x": 1500, | |
"y": 0 | |
}, | |
"restore": { | |
"expect": { | |
"scope": { | |
"label": "One cycle" | |
} | |
} | |
}, | |
"expect": [ | |
{ | |
"name": "name", | |
"type": "text", | |
"label": "Variable name", | |
"required": true | |
}, | |
{ | |
"name": "scope", | |
"type": "select", | |
"label": "Variable lifetime", | |
"required": true, | |
"validate": { | |
"enum": [ | |
"roundtrip", | |
"execution" | |
] | |
} | |
}, | |
{ | |
"name": "value", | |
"type": "any", | |
"label": "Variable value" | |
} | |
], | |
"interface": [ | |
{ | |
"name": "Assignees", | |
"type": "any", | |
"label": "Assignees" | |
} | |
] | |
} | |
} | |
] | |
}, | |
{ | |
"flow": [ | |
{ | |
"id": 12, | |
"module": "json:AggregateToJSON", | |
"version": 1, | |
"parameters": { | |
"type": 114405, | |
"space": "", | |
"feeder": 16 | |
}, | |
"filter": { | |
"name": "", | |
"conditions": [ | |
[ | |
{ | |
"a": "{{16.assignee}}", | |
"o": "exist" | |
} | |
] | |
] | |
}, | |
"mapper": { | |
"to_gid": "{{16.assignee.gid}}", | |
"from_gid": "{{16.gid}}" | |
}, | |
"metadata": { | |
"designer": { | |
"x": 1200, | |
"y": 300 | |
}, | |
"restore": { | |
"extra": { | |
"feeder": { | |
"label": "Asana - Get a Task [16]" | |
} | |
}, | |
"parameters": { | |
"type": { | |
"label": "Asana Relationship" | |
}, | |
"space": { | |
"label": "Empty" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "type", | |
"type": "udt", | |
"label": "Data structure", | |
"required": true | |
}, | |
{ | |
"name": "space", | |
"type": "select", | |
"label": "Indentation", | |
"validate": { | |
"enum": [ | |
"tab", | |
"2", | |
"4" | |
] | |
} | |
} | |
], | |
"expect": [ | |
{ | |
"name": "from_gid", | |
"type": "text", | |
"label": null | |
}, | |
{ | |
"name": "to_gid", | |
"type": "text", | |
"label": null | |
} | |
] | |
} | |
}, | |
{ | |
"id": 13, | |
"module": "util:SetVariable2", | |
"version": 1, | |
"parameters": {}, | |
"mapper": { | |
"name": "Task_ASSIGNED_TO_Assignee", | |
"scope": "roundtrip", | |
"value": "{{12.json}}" | |
}, | |
"metadata": { | |
"designer": { | |
"x": 1500, | |
"y": 300 | |
}, | |
"restore": { | |
"expect": { | |
"scope": { | |
"label": "One cycle" | |
} | |
} | |
}, | |
"expect": [ | |
{ | |
"name": "name", | |
"type": "text", | |
"label": "Variable name", | |
"required": true | |
}, | |
{ | |
"name": "scope", | |
"type": "select", | |
"label": "Variable lifetime", | |
"required": true, | |
"validate": { | |
"enum": [ | |
"roundtrip", | |
"execution" | |
] | |
} | |
}, | |
{ | |
"name": "value", | |
"type": "any", | |
"label": "Variable value" | |
} | |
], | |
"interface": [ | |
{ | |
"name": "Task_ASSIGNED_TO_Assignee", | |
"type": "any", | |
"label": "Task_ASSIGNED_TO_Assignee" | |
} | |
] | |
} | |
} | |
] | |
}, | |
{ | |
"flow": [ | |
{ | |
"id": 5, | |
"module": "json:AggregateToJSON", | |
"version": 1, | |
"parameters": { | |
"type": 114127, | |
"space": "", | |
"feeder": 16 | |
}, | |
"mapper": { | |
"gid": "{{16.gid}}", | |
"name": "{{16.name}}", | |
"url_link": "{{16.permalink_url}}", | |
"created_at": "{{16.created_at}}", | |
"updated_at": "{{16.modified_at}}", | |
"description": "{{16.notes}}" | |
}, | |
"metadata": { | |
"designer": { | |
"x": 1200, | |
"y": 600 | |
}, | |
"restore": { | |
"extra": { | |
"feeder": { | |
"label": "Asana - Get a Task [16]" | |
} | |
}, | |
"parameters": { | |
"type": { | |
"label": "Asana Task" | |
}, | |
"space": { | |
"label": "Empty" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "type", | |
"type": "udt", | |
"label": "Data structure", | |
"required": true | |
}, | |
{ | |
"name": "space", | |
"type": "select", | |
"label": "Indentation", | |
"validate": { | |
"enum": [ | |
"tab", | |
"2", | |
"4" | |
] | |
} | |
} | |
], | |
"expect": [ | |
{ | |
"name": "gid", | |
"type": "text", | |
"label": null, | |
"required": true | |
}, | |
{ | |
"name": "name", | |
"type": "text", | |
"label": null | |
}, | |
{ | |
"name": "description", | |
"type": "text", | |
"label": null | |
}, | |
{ | |
"name": "created_at", | |
"type": "date", | |
"label": null | |
}, | |
{ | |
"name": "updated_at", | |
"type": "date", | |
"label": null | |
}, | |
{ | |
"name": "url_link", | |
"type": "text", | |
"label": null | |
} | |
] | |
} | |
}, | |
{ | |
"id": 6, | |
"module": "util:SetVariable2", | |
"version": 1, | |
"parameters": {}, | |
"mapper": { | |
"name": "Tasks", | |
"scope": "roundtrip", | |
"value": "{{5.json}}" | |
}, | |
"metadata": { | |
"designer": { | |
"x": 1500, | |
"y": 600 | |
}, | |
"restore": { | |
"expect": { | |
"scope": { | |
"label": "One cycle" | |
} | |
} | |
}, | |
"expect": [ | |
{ | |
"name": "name", | |
"type": "text", | |
"label": "Variable name", | |
"required": true | |
}, | |
{ | |
"name": "scope", | |
"type": "select", | |
"label": "Variable lifetime", | |
"required": true, | |
"validate": { | |
"enum": [ | |
"roundtrip", | |
"execution" | |
] | |
} | |
}, | |
{ | |
"name": "value", | |
"type": "any", | |
"label": "Variable value" | |
} | |
], | |
"interface": [ | |
{ | |
"name": "Tasks", | |
"type": "any", | |
"label": "Tasks" | |
} | |
] | |
} | |
}, | |
{ | |
"id": 10, | |
"module": "util:GetVariables", | |
"version": 1, | |
"parameters": {}, | |
"mapper": { | |
"variables": [ | |
"Tasks", | |
"Assignees", | |
"Task_ASSIGNED_TO_Assignee" | |
] | |
}, | |
"metadata": { | |
"designer": { | |
"x": 1802, | |
"y": 600 | |
}, | |
"restore": { | |
"expect": { | |
"variables": { | |
"items": [ | |
null, | |
null, | |
null | |
] | |
} | |
} | |
}, | |
"expect": [ | |
{ | |
"name": "variables", | |
"spec": { | |
"name": "value", | |
"type": "text", | |
"label": "Variable name", | |
"required": true | |
}, | |
"type": "array", | |
"label": "Variables" | |
} | |
], | |
"interface": [ | |
{ | |
"name": "Tasks", | |
"type": "any", | |
"label": "Tasks" | |
}, | |
{ | |
"name": "Assignees", | |
"type": "any", | |
"label": "Assignees" | |
}, | |
{ | |
"name": "Task_ASSIGNED_TO_Assignee", | |
"type": "any", | |
"label": "Task_ASSIGNED_TO_Assignee" | |
} | |
] | |
} | |
}, | |
{ | |
"id": 4, | |
"module": "http:ActionSendDataBasicAuth", | |
"version": 3, | |
"parameters": { | |
"key": 31225, | |
"handleErrors": false | |
}, | |
"mapper": { | |
"ca": "", | |
"qs": [], | |
"url": "https://us-central1-neo4j-uploader-gcf.cloudfunctions.net/function-1", | |
"data": "{\n \"nodes\": [\n {\n \"labels\":[\"Employee\"],\n \"key\":\"gid\",\n \"dedupe\": true,\n \"records\":{{10.Assignees}}\n },\n {\n \"labels\":[\"Task\"],\n \"key\": \"gid\",\n \"dedupe\": true,\n \"records\":{{10.Tasks}}\n }\n ],\n \"relationships\": [\n {\n \"type\":\"ASSIGNED_TO\",\n \"from_node\": {\n \"record_key\":\"from_gid\",\n \"node_key\":\"gid\",\n \"node_label\":\"Task\"\n },\n \"to_node\": {\n \"record_key\":\"to_gid\",\n \"node_key\":\"gid\",\n \"node_label\": \"Employee\"\n },\n \"dedupe\": true,\n \"exclude_keys\":[\"from_gid\", \"to_gid\"],\n \"records\":{{10.Task_ASSIGNED_TO_Assignee}}\n }\n ]\n}", | |
"gzip": true, | |
"method": "post", | |
"headers": [], | |
"timeout": "", | |
"useMtls": false, | |
"bodyType": "raw", | |
"contentType": "application/json", | |
"serializeUrl": false, | |
"shareCookies": false, | |
"parseResponse": false, | |
"followRedirect": true, | |
"useQuerystring": false, | |
"followAllRedirects": false, | |
"rejectUnauthorized": true | |
}, | |
"metadata": { | |
"designer": { | |
"x": 2091, | |
"y": 627 | |
}, | |
"restore": { | |
"expect": { | |
"qs": { | |
"mode": "chose" | |
}, | |
"method": { | |
"mode": "chose", | |
"label": "POST" | |
}, | |
"headers": { | |
"mode": "chose" | |
}, | |
"bodyType": { | |
"label": "Raw" | |
}, | |
"contentType": { | |
"label": "JSON (application/json)" | |
} | |
}, | |
"parameters": { | |
"key": { | |
"label": "My HTTP Basic Auth key" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "key", | |
"type": "keychain:basicauth", | |
"label": "Credentials", | |
"required": true | |
}, | |
{ | |
"name": "handleErrors", | |
"type": "boolean", | |
"label": "Evaluate all states as errors (except for 2xx and 3xx )", | |
"required": true | |
} | |
], | |
"expect": [ | |
{ | |
"name": "url", | |
"type": "url", | |
"label": "URL", | |
"required": true | |
}, | |
{ | |
"name": "serializeUrl", | |
"type": "boolean", | |
"label": "Serialize URL", | |
"required": true | |
}, | |
{ | |
"name": "method", | |
"type": "select", | |
"label": "Method", | |
"required": true, | |
"validate": { | |
"enum": [ | |
"get", | |
"head", | |
"post", | |
"put", | |
"patch", | |
"delete", | |
"options" | |
] | |
} | |
}, | |
{ | |
"name": "headers", | |
"spec": [ | |
{ | |
"name": "name", | |
"type": "text", | |
"label": "Name", | |
"required": true | |
}, | |
{ | |
"name": "value", | |
"type": "text", | |
"label": "Value" | |
} | |
], | |
"type": "array", | |
"label": "Headers" | |
}, | |
{ | |
"name": "qs", | |
"spec": [ | |
{ | |
"name": "name", | |
"type": "text", | |
"label": "Name", | |
"required": true | |
}, | |
{ | |
"name": "value", | |
"type": "text", | |
"label": "Value" | |
} | |
], | |
"type": "array", | |
"label": "Query String" | |
}, | |
{ | |
"name": "bodyType", | |
"type": "select", | |
"label": "Body type", | |
"validate": { | |
"enum": [ | |
"raw", | |
"x_www_form_urlencoded", | |
"multipart_form_data" | |
] | |
} | |
}, | |
{ | |
"name": "parseResponse", | |
"type": "boolean", | |
"label": "Parse response", | |
"required": true | |
}, | |
{ | |
"name": "timeout", | |
"type": "uinteger", | |
"label": "Timeout", | |
"validate": { | |
"max": 300, | |
"min": 1 | |
} | |
}, | |
{ | |
"name": "shareCookies", | |
"type": "boolean", | |
"label": "Share cookies with other HTTP modules", | |
"required": true | |
}, | |
{ | |
"name": "ca", | |
"type": "cert", | |
"label": "Self-signed certificate" | |
}, | |
{ | |
"name": "rejectUnauthorized", | |
"type": "boolean", | |
"label": "Reject connections that are using unverified (self-signed) certificates", | |
"required": true | |
}, | |
{ | |
"name": "followRedirect", | |
"type": "boolean", | |
"label": "Follow redirect", | |
"required": true | |
}, | |
{ | |
"name": "useQuerystring", | |
"type": "boolean", | |
"label": "Disable serialization of multiple same query string keys as arrays", | |
"required": true | |
}, | |
{ | |
"name": "gzip", | |
"type": "boolean", | |
"label": "Request compressed content", | |
"required": true | |
}, | |
{ | |
"name": "useMtls", | |
"type": "boolean", | |
"label": "Use Mutual TLS", | |
"required": true | |
}, | |
{ | |
"name": "contentType", | |
"type": "select", | |
"label": "Content type", | |
"validate": { | |
"enum": [ | |
"text/plain", | |
"application/json", | |
"application/xml", | |
"text/xml", | |
"text/html", | |
"custom" | |
] | |
} | |
}, | |
{ | |
"name": "data", | |
"type": "buffer", | |
"label": "Request content" | |
}, | |
{ | |
"name": "followAllRedirects", | |
"type": "boolean", | |
"label": "Follow all redirect", | |
"required": true | |
} | |
] | |
} | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
], | |
"metadata": { | |
"instant": true, | |
"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": "us1.make.com" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment