Skip to content

Instantly share code, notes, and snippets.

@jalakoo
Last active March 5, 2024 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jalakoo/a89982261e14896de1c165679e71e050 to your computer and use it in GitHub Desktop.
Save jalakoo/a89982261e14896de1c165679e71e050 to your computer and use it in GitHub Desktop.
make.com -> neo4j | Asana | Webhook | Modified Task + Assignee
{
"name": "Webhook - Modified Asana Task",
"flow": [
{
"id": 1,
"module": "asana:watchTasksOrSubtasks",
"version": 2,
"parameters": {
"__IMTCONN__": 2259796,
"sort_by": "modified_at",
"completed": true,
"resource_subtype": "default_task",
"workspace": "200109678723468",
"limit": 1,
"text": "",
"assignee.any": [],
"portfolios.any": [],
"projects.any": [
"1205073076796615"
],
"tags.any": [],
"teams.any": [],
"created_by.any": [],
"assigned_by.any": []
},
"mapper": {},
"metadata": {
"designer": {
"x": 0,
"y": 300
},
"restore": {
"parameters": {
"__IMTCONN__": {
"label": "My Asana connection (jason.koo@neotechnology.com)",
"data": {
"scoped": "true",
"connection": "asana"
}
},
"sort_by": {
"label": "Modified Tasks"
},
"resource_subtype": {
"label": "Default Task"
},
"workspace": {
"label": "[Organization] neotechnology.com"
},
"assignee.any": {
"mode": "chose"
},
"portfolios.any": {
"mode": "chose"
},
"projects.any": {
"mode": "chose",
"label": [
"DevRel Events 2024"
]
},
"project": {
"mode": "chose"
},
"tags.any": {
"mode": "chose"
},
"teams.any": {
"mode": "chose"
},
"created_by.any": {
"mode": "chose"
},
"assigned_by.any": {
"mode": "chose"
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:asana",
"label": "Connection",
"required": true
},
{
"name": "sort_by",
"type": "select",
"label": "Watch",
"required": true,
"validate": {
"enum": [
"created_at",
"completed_at",
"modified_at"
]
}
},
{
"name": "completed",
"type": "hidden",
"label": "Completed"
},
{
"name": "resource_subtype",
"type": "select",
"label": "Resource Subtype",
"required": true,
"validate": {
"enum": [
"default_task",
"milestone"
]
}
},
{
"name": "workspace",
"type": "select",
"label": "Workspace",
"required": true
},
{
"name": "limit",
"type": "uinteger",
"label": "Limit",
"required": true
},
{
"name": "text",
"type": "text",
"label": "Text"
},
{
"name": "assignee.any",
"type": "select",
"label": "Assignee",
"multiple": true
},
{
"name": "portfolios.any",
"type": "select",
"label": "Portfolios",
"multiple": true
},
{
"name": "projects.any",
"type": "select",
"label": "Projects",
"multiple": true
},
{
"name": "project",
"type": "select",
"label": "Project"
},
{
"name": "tags.any",
"type": "select",
"label": "Tags",
"multiple": true
},
{
"name": "teams.any",
"type": "select",
"label": "Teams",
"multiple": true
},
{
"name": "created_by.any",
"type": "select",
"label": "Created By",
"multiple": true
},
{
"name": "assigned_by.any",
"type": "select",
"label": "Assigned By",
"multiple": true
},
{
"name": "is_blocking",
"type": "boolean",
"label": "Is Blocking"
},
{
"name": "is_blocked",
"type": "boolean",
"label": "Is Blocked"
},
{
"name": "has_attachment",
"type": "boolean",
"label": "Has Attachment"
},
{
"name": "is_subtask",
"type": "boolean",
"label": "Is Subtask"
}
]
}
},
{
"id": 3,
"module": "builtin:BasicRouter",
"version": 1,
"mapper": null,
"metadata": {
"designer": {
"x": 300,
"y": 300
}
},
"routes": [
{
"flow": [
{
"id": 6,
"module": "json:AggregateToJSON",
"version": 1,
"parameters": {
"type": 114128,
"space": "",
"feeder": 1
},
"filter": {
"name": "",
"conditions": [
[
{
"a": "{{1.assignee}}",
"o": "exist"
}
]
]
},
"mapper": {
"gid": "{{1.assignee.gid}}",
"name": "{{1.assignee.name}}",
"email": ""
},
"metadata": {
"designer": {
"x": 600,
"y": 0
},
"restore": {
"parameters": {
"type": {
"label": "Employee"
},
"space": {
"label": "Empty"
}
},
"extra": {
"feeder": {
"label": "Asana - Watch Tasks or Subtasks [1]"
}
}
},
"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": 7,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "Assignee",
"scope": "roundtrip",
"value": "{{6.json}}"
},
"metadata": {
"designer": {
"x": 900,
"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": "Assignee",
"label": "Assignee",
"type": "any"
}
]
}
}
]
},
{
"flow": [
{
"id": 14,
"module": "json:AggregateToJSON",
"version": 1,
"parameters": {
"type": 114405,
"space": "",
"feeder": 1
},
"filter": {
"name": "",
"conditions": [
[
{
"a": "{{1.assignee}}",
"o": "exist"
}
]
]
},
"mapper": {
"from_gid": "{{1.gid}}",
"to_gid": "{{1.assignee.gid}}"
},
"metadata": {
"designer": {
"x": 658,
"y": 303
},
"restore": {
"parameters": {
"type": {
"label": "Asana Relationship"
},
"space": {
"label": "Empty"
}
},
"extra": {
"feeder": {
"label": "Asana - Watch Tasks or Subtasks [1]"
}
}
},
"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": 9,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "Task_ASSIGNED_TO_Employee",
"scope": "roundtrip",
"value": "{{14.json}}"
},
"metadata": {
"designer": {
"x": 993,
"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_Employee",
"label": "Task_ASSIGNED_TO_Employee",
"type": "any"
}
]
}
}
]
},
{
"flow": [
{
"id": 4,
"module": "json:AggregateToJSON",
"version": 1,
"parameters": {
"type": 114127,
"space": "",
"feeder": 1
},
"mapper": {
"gid": "{{1.gid}}",
"name": "{{1.name}}",
"description": "{{1.notes}}",
"created_at": "{{1.created_at}}",
"updated_at": "{{1.modified_at}}",
"url_link": "{{1.permalink_url}}"
},
"metadata": {
"designer": {
"x": 600,
"y": 600
},
"restore": {
"parameters": {
"type": {
"label": "Asana Task"
},
"space": {
"label": "Empty"
}
},
"extra": {
"feeder": {
"label": "Asana - Watch Tasks or Subtasks [1]"
}
}
},
"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": 5,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "Task",
"scope": "roundtrip",
"value": "{{4.json}}"
},
"metadata": {
"designer": {
"x": 900,
"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": "Task",
"label": "Task",
"type": "any"
}
]
}
},
{
"id": 12,
"module": "builtin:BasicRouter",
"version": 1,
"mapper": null,
"metadata": {
"designer": {
"x": 1200,
"y": 600
}
},
"routes": [
{
"flow": [
{
"id": 13,
"module": "util:GetVariables",
"version": 1,
"parameters": {},
"mapper": {
"variables": [
"Task",
"Assignee",
"Task_ASSIGNED_TO_Employee"
]
},
"metadata": {
"designer": {
"x": 1500,
"y": 600
},
"restore": {
"expect": {
"variables": {
"items": [
null,
null,
null
]
}
}
},
"expect": [
{
"name": "variables",
"type": "array",
"label": "Variables",
"spec": {
"name": "value",
"label": "Variable name",
"type": "text",
"required": true
}
}
],
"interface": [
{
"name": "Task",
"label": "Task",
"type": "any"
},
{
"name": "Assignee",
"label": "Assignee",
"type": "any"
},
{
"name": "Task_ASSIGNED_TO_Employee",
"label": "Task_ASSIGNED_TO_Employee",
"type": "any"
}
]
}
},
{
"id": 2,
"module": "http:ActionSendDataBasicAuth",
"version": 3,
"parameters": {
"key": 31225,
"handleErrors": false
},
"mapper": {
"url": "https://us-central1-neo4j-uploader-gcf.cloudfunctions.net/function-1",
"serializeUrl": false,
"method": "post",
"headers": [],
"qs": [],
"bodyType": "raw",
"parseResponse": false,
"timeout": "",
"shareCookies": false,
"ca": "",
"rejectUnauthorized": true,
"followRedirect": true,
"useQuerystring": false,
"gzip": true,
"useMtls": false,
"contentType": "application/json",
"data": "{\n \"nodes\": [\n {\n \"labels\":[\"Person\"],\n \"key\":\"gid\",\n \"dedupe\": true,\n \"records\":{{13.Assignee}}\n },\n {\n \"labels\":[\"Task\"],\n \"key\": \"gid\",\n \"dedupe\": true,\n \"records\":{{13.Task}}\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\": \"Person\"\n },\n \"dedupe\": true,\n \"exclude_keys\":[\"from_gid\", \"to_gid\"],\n \"records\":{{13.Task_ASSIGNED_TO_Employee}}\n }\n ]\n}",
"followAllRedirects": false
},
"metadata": {
"designer": {
"x": 1800,
"y": 600
},
"restore": {
"parameters": {
"key": {
"label": "My HTTP Basic Auth key"
}
},
"expect": {
"method": {
"mode": "chose",
"label": "POST"
},
"headers": {
"mode": "chose"
},
"qs": {
"mode": "chose"
},
"bodyType": {
"label": "Raw"
},
"contentType": {
"label": "JSON (application/json)"
}
}
},
"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",
"type": "array",
"label": "Headers",
"spec": [
{
"name": "name",
"label": "Name",
"type": "text",
"required": true
},
{
"name": "value",
"label": "Value",
"type": "text"
}
]
},
{
"name": "qs",
"type": "array",
"label": "Query String",
"spec": [
{
"name": "name",
"label": "Name",
"type": "text",
"required": true
},
{
"name": "value",
"label": "Value",
"type": "text"
}
]
},
{
"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": 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": "us1.make.com"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment