Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name": "Integration Google Drive, Gmail",
- "flow": [
- {
- "id": 3,
- "module": "google-drive:watchFilesInAFolder",
- "version": 4,
- "parameters": {
- "limit": 30,
- "select": "create",
- "folderId": "/ID",
- "mimeType": "all",
- "__IMTCONN__": 2056608,
- "destination": "drive"
- },
- "mapper": {},
- "metadata": {
- "designer": {
- "x": 0,
- "y": 0
- },
- "restore": {
- "parameters": {
- "select": {
- "label": "By Created Time"
- },
- "folderId": {
- "path": [
- "שם התיקייה"
- ]
- },
- "mimeType": {
- "label": "All"
- },
- "__IMTCONN__": {
- "data": {
- "scoped": "true",
- "connection": "google-restricted"
- },
- "label": "My Google connectionכאן נכנס שם החשבון שלנו "
- },
- "destination": {
- "label": "My Drive"
- }
- }
- },
- "parameters": [
- {
- "name": "__IMTCONN__",
- "type": "account:google-restricted",
- "label": "Connection",
- "required": true
- },
- {
- "name": "select",
- "type": "select",
- "label": "Watch Files",
- "required": true,
- "validate": {
- "enum": [
- "create",
- "modify"
- ]
- }
- },
- {
- "name": "destination",
- "type": "select",
- "label": "Choose a Drive",
- "required": true,
- "validate": {
- "enum": [
- "drive",
- "share",
- "team"
- ]
- }
- },
- {
- "name": "mimeType",
- "type": "select",
- "label": "File Types to Watch",
- "required": true,
- "validate": {
- "enum": [
- "all",
- "document",
- "spreadsheet",
- "slide",
- "drawing"
- ]
- }
- },
- {
- "name": "limit",
- "type": "uinteger",
- "label": "Limit",
- "required": true
- },
- {
- "name": "folderId",
- "type": "folder",
- "label": "Select the Folder to be Watched",
- "required": true
- }
- ]
- }
- },
- {
- "id": 5,
- "module": "google-drive:getAFile",
- "version": 4,
- "parameters": {
- "__IMTCONN__": 2056608
- },
- "mapper": {
- "file": "{{3.id}}",
- "select": "map",
- "formatDrawings": "image/jpeg",
- "formatDocuments": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
- "formatSpreadsheets": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
- "formatPresentations": "application/vnd.openxmlformats-officedocument.presentationml.presentation"
- },
- "metadata": {
- "designer": {
- "x": 300,
- "y": 0
- },
- "restore": {
- "expect": {
- "select": {
- "label": "Enter manually"
- },
- "formatDrawings": {
- "label": "JPEG"
- },
- "formatDocuments": {
- "label": "MS Word Document"
- },
- "formatSpreadsheets": {
- "label": "MS Excel"
- },
- "formatPresentations": {
- "label": "MS PowerPoint"
- }
- },
- "parameters": {
- "__IMTCONN__": {
- "data": {
- "scoped": "true",
- "connection": "google-restricted"
- },
- "label": "My Google connection (שם החשבון שלנו)"
- }
- }
- },
- "parameters": [
- {
- "name": "__IMTCONN__",
- "type": "account:google-restricted",
- "label": "Connection",
- "required": true
- }
- ],
- "expect": [
- {
- "name": "select",
- "type": "select",
- "label": "Enter a File ID",
- "required": true,
- "validate": {
- "enum": [
- "map",
- "value"
- ]
- }
- },
- {
- "name": "formatDocuments",
- "type": "select",
- "label": "Convert Google Documents Files to Format",
- "required": true,
- "validate": {
- "enum": [
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
- "application/pdf",
- "application/vnd.oasis.opendocument.text",
- "text/html",
- "text/plain",
- "application/rtf"
- ]
- }
- },
- {
- "name": "formatSpreadsheets",
- "type": "select",
- "label": "Convert Google Spreadsheets Files to Format",
- "required": true,
- "validate": {
- "enum": [
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
- "application/x-vnd.oasis.opendocument.spreadsheet",
- "application/pdf"
- ]
- }
- },
- {
- "name": "formatPresentations",
- "type": "select",
- "label": "Convert Google Slides Files to Format",
- "required": true,
- "validate": {
- "enum": [
- "application/vnd.openxmlformats-officedocument.presentationml.presentation",
- "application/pdf"
- ]
- }
- },
- {
- "name": "formatDrawings",
- "type": "select",
- "label": "Convert Google Drawings Files to Format",
- "required": true,
- "validate": {
- "enum": [
- "image/jpeg",
- "image/png",
- "image/svg+xml",
- "application/pdf"
- ]
- }
- },
- {
- "name": "file",
- "type": "text",
- "label": "File ID",
- "required": true
- }
- ]
- }
- },
- {
- "id": 4,
- "module": "builtin:BasicAggregator",
- "version": 1,
- "parameters": {
- "target": "2.attachments",
- "feeder": 3
- },
- "mapper": {
- "fileName": "{{5.name}}",
- "data": "{{5.data}}"
- },
- "metadata": {
- "designer": {
- "x": 600,
- "y": 0
- },
- "restore": {
- "extra": {
- "feeder": {
- "label": "Google Drive - Watch Files in a Folder "
- },
- "target": {
- "label": "Attachments"
- }
- }
- },
- "expect": [
- {
- "name": "fileName",
- "type": "filename",
- "label": "File name",
- "required": true
- },
- {
- "name": "data",
- "type": "buffer",
- "label": "Data",
- "required": true
- }
- ],
- "advanced": true
- },
- "flags": {
- "stopIfEmpty": true
- }
- },
- {
- "id": 2,
- "module": "google-email:ActionCreateDraft",
- "version": 2,
- "parameters": {
- "account": 2056608
- },
- "mapper": {
- "folder": "[Gmail]/Drafts",
- "subject": "{{3.name}}דוח חדש",
- "html": "היי מצורף קובץ חדש לטובת הדוח",
- "attachments": "{{4.array}}",
- "cc": [],
- "bcc": []
- },
- "metadata": {
- "designer": {
- "x": 900,
- "y": 0
- },
- "restore": {
- "parameters": {
- "account": {
- "data": {
- "scoped": "true",
- "connection": "google-restricted"
- }
- }
- },
- "expect": {
- "folder": {
- "mode": "chose",
- "path": [
- "Drafts",
- "Drafts"
- ]
- },
- "to": {
- "mode": "edit"
- },
- "attachments": {
- "mode": "edit"
- },
- "cc": {
- "mode": "chose"
- },
- "bcc": {
- "mode": "chose"
- }
- }
- },
- "parameters": [
- {
- "name": "account",
- "type": "account:google-restricted",
- "label": "Connection",
- "required": true
- }
- ],
- "expect": [
- {
- "name": "folder",
- "type": "folder",
- "label": "Folder",
- "required": true
- },
- {
- "name": "to",
- "type": "array",
- "label": "To",
- "spec": {
- "name": "value",
- "type": "email",
- "label": "Email address",
- "required": true
- }
- },
- {
- "name": "subject",
- "type": "text",
- "label": "Subject"
- },
- {
- "name": "html",
- "type": "text",
- "label": "Content"
- },
- {
- "name": "attachments",
- "type": "array",
- "label": "Attachments",
- "spec": [
- {
- "name": "fileName",
- "label": "File name",
- "type": "filename",
- "required": true,
- "semantic": "file:name"
- },
- {
- "name": "data",
- "label": "Data",
- "type": "buffer",
- "required": true,
- "semantic": "file:data"
- }
- ]
- },
- {
- "name": "cc",
- "type": "array",
- "label": "Copy recipient",
- "spec": {
- "name": "value",
- "type": "email",
- "label": "Email address",
- "required": true
- }
- },
- {
- "name": "bcc",
- "type": "array",
- "label": "Blind copy recipient",
- "spec": {
- "name": "value",
- "type": "email",
- "label": "Email address",
- "required": true
- }
- }
- ],
- "advanced": 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": "eu2.make.com"
- }
- }
Add Comment
Please, Sign In to add comment