{ "name": "Get to-do list", "flow": [ { "id": 1, "module": "gateway:CustomWebHook", "version": 1, "parameters": { "hook": 1695383, "maxResults": 1 }, "mapper": {}, "metadata": { "designer": { "x": 0, "y": 0 }, "restore": { "parameters": { "hook": { "data": { "editable": "true" }, "label": "Get notion" } } }, "parameters": [ { "name": "hook", "type": "hook:gateway-webhook", "label": "Webhook", "required": true }, { "name": "maxResults", "type": "number", "label": "Maximum number of results" } ] } }, { "id": 7, "module": "notion:searchObjects1", "version": 1, "parameters": { "__IMTCONN__": 2882389 }, "mapper": { "limit": "10", "filter": [ [ { "a": "Priority |&*^%$#@| select", "b": "High", "o": "text:equals" } ] ], "select": "item", "database": "97fef15e70f845439002add3d0e0f797" }, "metadata": { "designer": { "x": 300, "y": 0 }, "restore": { "expect": { "sorts": { "mode": "chose" }, "select": { "label": "Database Items" } }, "parameters": { "__IMTCONN__": { "data": { "scoped": "true", "connection": "notion3" }, "label": "Forcefactory" } } }, "parameters": [ { "name": "__IMTCONN__", "type": "account:notion2,notion3", "label": "Connection", "required": true } ], "expect": [ { "name": "select", "type": "select", "label": "Search Objects", "required": true, "validate": { "enum": [ "item", "database", "page" ] } }, { "name": "limit", "type": "uinteger", "label": "Limit" }, { "name": "database", "type": "text", "label": "Database ID", "required": true }, { "name": "filter", "type": "filter", "label": "Filter", "options": { "store": [ { "label": "Category (Select)", "value": "Category |&*^%$#@| select" }, { "label": "Priority (Select)", "value": "Priority |&*^%$#@| select" }, { "label": "Assign (People)", "value": "Assign |&*^%$#@| people" }, { "label": "Name (Title)", "value": "Name |&*^%$#@| title" } ], "operators": [ { "label": "Text", "options": [ { "label": "Equals", "value": "text:equals" }, { "label": "Does not equal", "value": "text:does_not_equal" }, { "label": "Contains", "value": "text:contains" }, { "label": "Does not contain", "value": "text:does_not_contain" }, { "label": "Starts with", "value": "text:starts_with" }, { "label": "Ends with", "value": "text:ends_with" }, { "label": "Is empty (Boolean)", "value": "text:is_empty" }, { "label": "Is not empty (boolean)", "value": "text:is_not_empty" } ] }, { "label": "Number", "options": [ { "label": "Equals", "value": "number:equals" }, { "label": "Does not equal", "value": "number:does_not_equal" }, { "label": "Greater than", "value": "number:greater_than" }, { "label": "Less than", "value": "number:less_than" }, { "label": "Greater than or equal to", "value": "number:greater_than_or_equal_to" }, { "label": "Less than or equal to", "value": "number:less_than_or_equal_to" }, { "label": "Is empty (Boolean)", "value": "number:is_empty" }, { "label": "Is not empty (boolean)", "value": "number:is_not_empty" } ] }, { "label": "Date", "options": [ { "label": "Equals", "value": "date:equals" }, { "label": "Before", "value": "date:before" }, { "label": "After", "value": "date:after" }, { "label": "On or before", "value": "date:on_or_before" }, { "label": "On or after", "value": "date:on_or_after" }, { "label": "Is empty (Boolean)", "value": "date:is_empty" }, { "label": "Is not empty (boolean)", "value": "date:is_not_empty" } ] }, { "label": "Checkbox", "options": [ { "label": "Equals", "value": "checkbox:equals" }, { "label": "Does not equal", "value": "checkbox:does_not_equal" } ] }, { "label": "File", "options": [ { "label": "Equals", "value": "file:equals" }, { "label": "Does not equal", "value": "file:does_not_equal" } ] }, { "label": "Select", "options": [ { "label": "Equals", "value": "select:equals" }, { "label": "Does not equal", "value": "select:does_not_equal" }, { "label": "Is empty (Boolean)", "value": "select:is_empty" }, { "label": "Is not empty (boolean)", "value": "select:is_not_empty" } ] }, { "label": "Multi-select", "options": [ { "label": "Contains", "value": "multiselect:contains" }, { "label": "Does not contain", "value": "multiselect:does_not_contain" }, { "label": "Is empty (Boolean)", "value": "multiselect:is_empty" }, { "label": "Is not empty (boolean)", "value": "multiselect:is_not_empty" } ] }, { "label": "People", "options": [ { "label": "Contains", "value": "people:contains" }, { "label": "Does not contain", "value": "people:does_not_contain" }, { "label": "Is empty (Boolean)", "value": "people:is_empty" }, { "label": "Is not empty (boolean)", "value": "people:is_not_empty" } ] }, { "label": "Relation", "options": [ { "label": "Contains", "value": "relation:contains" }, { "label": "Does not contain", "value": "relation:does_not_contain" }, { "label": "Is empty (Boolean)", "value": "relation:is_empty" }, { "label": "Is not empty (boolean)", "value": "relation:is_not_empty" } ] }, { "label": "Formula", "options": [ { "label": "String - Equals", "value": "formula:text-equals" }, { "label": "String - Does not equal", "value": "formula:text-does_not_equal" }, { "label": "String - Contains", "value": "formula:text-contains" }, { "label": "String - Does not contain", "value": "formula:text-does_not_contain" }, { "label": "String - Starts with", "value": "formula:text-starts_with" }, { "label": "String - Ends with", "value": "formula:text-ends_with" }, { "label": "String - Is empty (Boolean)", "value": "formula:text-is_empty" }, { "label": "Text - Is not empty (boolean)", "value": "formula:text-is_not_empty" }, { "label": "Checkbox - Equals", "value": "formula:checkbox-equals" }, { "label": "Checkbox - Does not equal", "value": "formula:checkbox-does_not_equal" }, { "label": "Number - Equals", "value": "formula:number-equals" }, { "label": "Number - Does not equal", "value": "formula:number-does_not_equal" }, { "label": "Number - Greater than", "value": "formula:number-greater_than" }, { "label": "Number - Less than", "value": "formula:number-less_than" }, { "label": "Number - Greater than or equal to", "value": "formula:number-greater_than_or_equal_to" }, { "label": "Number - Less than or equal to", "value": "formula:number-less_than_or_equal_to" }, { "label": "Number - Is empty (Boolean)", "value": "formula:number-is_empty" }, { "label": "Number - Is not empty (boolean)", "value": "formula:number-is_not_empty" }, { "label": "Date - Equals", "value": "formula:date-equals" }, { "label": "Date - before", "value": "formula:date-before" }, { "label": "Date - after", "value": "formula:date-after" }, { "label": "Date - On or before", "value": "formula:date-on_or_before" }, { "label": "Date - On or after", "value": "formula:date-on_or_after" }, { "label": "Date - Is empty (Boolean)", "value": "formula:date-is_empty" }, { "label": "Date - Is not empty (boolean)", "value": "formula:date-is_not_empty" } ] } ] } }, { "name": "sorts", "spec": [ { "name": "select", "type": "select", "label": "Select a Field to Sort", "options": [ { "label": "Property Field", "value": "property", "nested": [ { "name": "property", "type": "select", "label": "Property Field", "options": "rpc://notion/1/listDatabasePropertiesFieldsForFilter?sortParameter=true", "required": true } ] }, { "label": "Timestamp", "value": "timestamp", "nested": [ { "name": "timestamp", "type": "select", "label": "Timestamp", "options": [ { "label": "Created time", "value": "created_time", "default": true }, { "label": "Last edited time", "value": "last_edited_time" } ], "required": true } ], "default": true } ], "required": true }, { "name": "direction", "type": "select", "label": "Direction", "options": [ { "label": "Ascending", "value": "ascending" }, { "label": "Descending", "value": "descending" } ], "required": true } ], "type": "array", "label": "Sorts" } ], "interface": [ { "name": "__IMTLENGTH__", "type": "uinteger", "label": "Total number of bundles" }, { "name": "__IMTINDEX__", "type": "uinteger", "label": "Bundle order position" }, { "name": "object", "type": "text", "label": "Object" }, { "name": "id", "type": "text", "label": "Page ID" }, { "name": "created_time", "type": "date", "label": "Created Time" }, { "name": "last_edited_time", "type": "date", "label": "Last Edited Time" }, { "name": "created_by", "spec": [ { "name": "object", "type": "text", "label": "Object" }, { "name": "id", "type": "uuid", "label": "ID" } ], "type": "collection", "label": "Created by" }, { "name": "last_edited_by", "spec": [ { "name": "object", "type": "text", "label": "Object" }, { "name": "id", "type": "uuid", "label": "ID" } ], "type": "collection", "label": "Last Edited by" }, { "name": "icon", "spec": [ { "name": "type", "type": "text", "label": "Type" }, { "name": "emoji", "type": "text", "label": "Emoji" } ], "type": "collection", "label": "Icon" }, { "name": "cover", "spec": [ { "name": "type", "type": "text", "label": "Type" }, { "name": "external", "spec": [ { "name": "url", "type": "text", "label": "URL" } ], "type": "collection", "label": "External" } ], "type": "collection", "label": "Cover" }, { "name": "url", "type": "text", "label": "URL" }, { "name": "parent", "spec": [ { "name": "type", "type": "text", "label": "Type" }, { "name": "workspace", "type": "boolean", "label": "Workspace" }, { "name": "page_id", "type": "text", "label": "Page ID" }, { "name": "database_id", "type": "text", "label": "Database ID" } ], "type": "collection", "label": "Parent" }, { "name": "archived", "type": "boolean", "label": "Archived" }, { "name": "properties", "spec": { "spec": [ { "name": "id", "type": "text", "label": "ID" }, { "name": "type", "type": "text", "label": "Type" }, { "name": "people", "spec": { "spec": [ { "name": "object", "type": "text", "label": "Object" }, { "name": "id", "type": "text", "label": "ID" }, { "name": "name", "type": "text", "label": "Name" }, { "name": "avatar_url", "type": "text", "label": "Avatar Url" }, { "name": "type", "type": "text", "label": "Type" }, { "name": "person", "spec": [ { "name": "email", "type": "text", "label": "Email" } ], "type": "collection", "label": "Person" } ], "type": "collection" }, "type": "array", "label": "People" }, { "name": "url", "type": "text", "label": "URL" }, { "name": "text", "spec": { "spec": [ { "name": "type", "type": "text", "label": "Type" }, { "name": "text", "spec": [ { "name": "content", "type": "text", "label": "Content" }, { "name": "link", "type": "text", "label": "Link" } ], "type": "collection", "label": "Text" }, { "name": "annotations", "spec": [ { "name": "bold", "type": "boolean", "label": "Bold" }, { "name": "italic", "type": "boolean", "label": "Italic" }, { "name": "strikethrough", "type": "boolean", "label": "Strikethrough" }, { "name": "underline", "type": "boolean", "label": "Underline" }, { "name": "code", "type": "boolean", "label": "Code" }, { "name": "color", "type": "text", "label": "Color" } ], "type": "collection", "label": "Annotations" }, { "name": "plain_text", "type": "text", "label": "Plain Text" }, { "name": "href", "type": "text", "label": "Href" } ], "type": "collection" }, "type": "array", "label": "Text" }, { "name": "select", "spec": [ { "name": "id", "type": "text", "label": "ID" }, { "name": "name", "type": "text", "label": "Name" }, { "name": "color", "type": "text", "label": "Color" } ], "type": "collection", "label": "Select" }, { "name": "email", "type": "text", "label": "Email" }, { "name": "phone_number", "type": "text", "label": "Phone Number" }, { "name": "multi_select", "spec": { "spec": [ { "name": "id", "type": "text", "label": "ID" }, { "name": "name", "type": "text", "label": "Name" }, { "name": "color", "type": "text", "label": "Color" } ], "type": "collection" }, "type": "array", "label": "Multi Select" }, { "name": "date", "spec": [ { "name": "start", "type": "text", "label": "Start" }, { "name": "end", "type": "text", "label": "End" } ], "type": "collection", "label": "Date" }, { "name": "checkbox", "type": "boolean", "label": "Checkbox" }, { "name": "number", "type": "number", "label": "Number" }, { "name": "files", "spec": { "spec": [ { "name": "name", "type": "text", "label": "Name" } ], "type": "collection" }, "type": "array", "label": "Files" }, { "name": "title", "spec": { "spec": [ { "name": "type", "type": "text", "label": "Type" }, { "name": "text", "spec": [ { "name": "content", "type": "text", "label": "Content" }, { "name": "link", "type": "text", "label": "Link" } ], "type": "collection", "label": "Text" }, { "name": "annotations", "spec": [ { "name": "bold", "type": "boolean", "label": "Bold" }, { "name": "italic", "type": "boolean", "label": "Italic" }, { "name": "strikethrough", "type": "boolean", "label": "Strikethrough" }, { "name": "underline", "type": "boolean", "label": "Underline" }, { "name": "code", "type": "boolean", "label": "Code" }, { "name": "color", "type": "text", "label": "Color" } ], "type": "collection", "label": "Annotations" }, { "name": "plain_text", "type": "text", "label": "Plain Text" }, { "name": "href", "type": "text", "label": "Href" } ], "type": "collection" }, "type": "array", "label": "Title" }, { "name": "last_edited_time", "time": true, "type": "date", "label": "Last Edited Time" }, { "name": "created_time", "time": true, "type": "date", "label": "Created Time" }, { "name": "last_edited_by", "spec": [ { "name": "object", "type": "text", "label": "Object" }, { "name": "id", "type": "text", "label": "ID" }, { "name": "name", "type": "text", "label": "Name" }, { "name": "avatar_url", "type": "text", "label": "Avatar Url" }, { "name": "type", "type": "text", "label": "Type" }, { "name": "person", "spec": [ { "name": "email", "type": "text", "label": "Email" } ], "type": "collection", "label": "Person" } ], "type": "collection", "label": "Last Edited By" }, { "name": "created_by", "spec": [ { "name": "object", "type": "text", "label": "Object" }, { "name": "id", "type": "text", "label": "ID" }, { "name": "name", "type": "text", "label": "Name" }, { "name": "avatar_url", "type": "text", "label": "Avatar Url" }, { "name": "type", "type": "text", "label": "Type" }, { "name": "person", "spec": [ { "name": "email", "type": "text", "label": "Email" } ], "type": "collection", "label": "Person" } ], "type": "collection", "label": "Created By" }, { "name": "formula", "spec": [ { "name": "type", "type": "text", "label": "Type" }, { "name": "string", "type": "text", "label": "String" } ], "type": "collection", "label": "Formula" }, { "name": "relation", "spec": { "spec": [ { "name": "id", "type": "text", "label": "ID" } ], "type": "collection" }, "type": "array", "label": "Relation" }, { "name": "label", "type": "text", "label": "Label" } ], "type": "collection" }, "type": "array", "label": "Properties" }, { "name": "properties_value", "spec": [ { "name": "Category", "spec": [ { "name": "id", "type": "text", "label": "ID" }, { "name": "name", "type": "text", "label": "Name" }, { "name": "color", "type": "text", "label": "Color" } ], "type": "collection", "label": "Category" }, { "name": "Priority", "spec": [ { "name": "id", "type": "text", "label": "ID" }, { "name": "name", "type": "text", "label": "Name" }, { "name": "color", "type": "text", "label": "Color" } ], "type": "collection", "label": "Priority" }, { "name": "Status", "spec": [ { "name": "id", "type": "text", "label": "ID" }, { "name": "name", "type": "text", "label": "Name" }, { "name": "color", "type": "text", "label": "Color" } ], "type": "collection", "label": "Status" }, { "name": "Assign", "spec": [ { "name": "object", "type": "text", "label": "Object" }, { "name": "id", "type": "text", "label": "ID" }, { "name": "name", "type": "text", "label": "Name" }, { "name": "avatar_url", "type": "text", "label": "Avatar Url" }, { "name": "type", "type": "text", "label": "Type" }, { "name": "person", "spec": [ { "name": "email", "type": "text", "label": "Email" } ], "type": "collection", "label": "Person" } ], "type": "array", "label": "Assign" }, { "name": "Name", "spec": [ { "name": "type", "type": "text", "label": "Type" }, { "name": "text", "spec": [ { "name": "content", "type": "text", "label": "Content" }, { "name": "link", "type": "text", "label": "Link" } ], "type": "collection", "label": "Text" }, { "name": "annotations", "spec": [ { "name": "bold", "type": "boolean", "label": "Bold" }, { "name": "italic", "type": "boolean", "label": "Italic" }, { "name": "strikethrough", "type": "boolean", "label": "Strikethrough" }, { "name": "underline", "type": "boolean", "label": "Underline" }, { "name": "code", "type": "boolean", "label": "Code" }, { "name": "color", "type": "text", "label": "Color" } ], "type": "collection", "label": "Annotations" }, { "name": "plain_text", "type": "text", "label": "Plain Text" }, { "name": "href", "type": "text", "label": "Href" } ], "type": "array", "label": "Name" } ], "type": "collection", "label": "Properties Value" } ] } }, { "id": 8, "module": "builtin:BasicAggregator", "version": 1, "parameters": { "feeder": 7, "target": "9.headers" }, "mapper": { "key": "Task", "value": "{{7.properties_value.Name[].text.content}}" }, "metadata": { "designer": { "x": 600, "y": 0 }, "restore": { "extra": { "feeder": { "label": "Notion - Search Objects [7]" }, "target": { "label": "Custom headers" } } }, "expect": [ { "name": "key", "type": "text", "label": "Key", "required": true, "validate": { "max": 256 } }, { "name": "value", "type": "text", "label": "Value", "required": true, "validate": { "max": 4096 } } ], "advanced": true } }, { "id": 9, "module": "gateway:WebhookRespond", "version": 1, "parameters": {}, "mapper": { "body": "{{8.array}}", "status": "200", "headers": [] }, "metadata": { "designer": { "x": 900, "y": 0 }, "restore": { "expect": { "headers": { "mode": "chose" } } }, "expect": [ { "name": "status", "type": "uinteger", "label": "Status", "required": true, "validate": { "min": 100 } }, { "name": "body", "type": "any", "label": "Body" }, { "name": "headers", "spec": [ { "name": "key", "type": "text", "label": "Key", "required": true, "validate": { "max": 256 } }, { "name": "value", "type": "text", "label": "Value", "required": true, "validate": { "max": 4096 } } ], "type": "array", "label": "Custom headers", "validate": { "maxItems": 16 } } ] } } ], "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" } }