{
  "workflow_name": "Save Cognito Forms file uploads to a Google Drive folder",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Entry",
          "app": {
            "key": "cognito_forms",
            "fm_app": "cognito_forms"
          },
          "eventSlug": "submit_entry_endpoint",
          "eventTitle": "New Entry",
          "layoutDirection": "horizontal",
          "stepNumber": 1
        },
        "targetPosition": "bottom",
        "type": "trigger",
        "stepNumber": 1,
        "expanded": true,
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "application": "cognito_forms",
        "stepID": "1",
        "action": "submit_entry_endpoint",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "Id": "5-23",
          "Form_Id": "5",
          "Form_Name": "Job application",
          "Name_First": "Priya",
          "Name_Last": "Shah",
          "Name_FirstAndLast": "Priya Shah",
          "Email": "priya.shah@example.com",
          "Entry_Number": 23,
          "Entry_DateSubmitted": "2026-10-21T09:48:30.112Z",
          "Resume": "[{\"ContentType\":\"application/pdf\",\"Id\":\"F-8sK2pQ\",\"Name\":\"priya-shah-resume.pdf\",\"Size\":48211,\"File\":\"https://www.cognitoforms.com/file/example/F-8sK2pQ\"},{\"ContentType\":\"application/pdf\",\"Id\":\"F-9tL3rR\",\"Name\":\"portfolio.pdf\",\"Size\":902114,\"File\":\"https://www.cognitoforms.com/file/example/F-9tL3rR\"}]"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "Id": "5-23",
              "Form_Id": "5",
              "Form_Name": "Job application",
              "Name_First": "Priya",
              "Name_Last": "Shah",
              "Name_FirstAndLast": "Priya Shah",
              "Email": "priya.shah@example.com",
              "Entry_Number": 23,
              "Entry_DateSubmitted": "2026-10-21T09:48:30.112Z",
              "Resume": "[{\"ContentType\":\"application/pdf\",\"Id\":\"F-8sK2pQ\",\"Name\":\"priya-shah-resume.pdf\",\"Size\":48211,\"File\":\"https://www.cognitoforms.com/file/example/F-8sK2pQ\"},{\"ContentType\":\"application/pdf\",\"Id\":\"F-9tL3rR\",\"Name\":\"portfolio.pdf\",\"Size\":902114,\"File\":\"https://www.cognitoforms.com/file/example/F-9tL3rR\"}]"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Create a folder for the entry",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "google_drive",
            "fm_app": "google_drive"
          },
          "eventSlug": "create_sub_folder",
          "eventTitle": "Create a Sub Folder"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "folder_id": "",
          "folder_name": "{cognito_forms1.Name_FirstAndLast} - entry {cognito_forms1.Entry_Number}"
        },
        "application": "google_drive",
        "action": "create_sub_folder",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Iterator",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "iterator",
            "fm_app": "iterator"
          },
          "eventSlug": "loop_through_array",
          "eventTitle": "Loop Through Array"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "iteratorArray": "{cognito_forms1.Resume}",
          "iterator_simple_response": "Yes",
          "iteratorMethod": "single",
          "batchSize": "25"
        },
        "application": "iterator",
        "action": "loop_through_array",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "4",
        "position": {
          "x": 525,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Upload each file",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "google_drive",
            "fm_app": "google_drive"
          },
          "eventSlug": "upload_file",
          "eventTitle": "Upload a File"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "folder_id": "{google_drive2.id}",
          "file_url": "{iterator3.File}",
          "file_name": "{iterator3.Name}"
        },
        "application": "google_drive",
        "action": "upload_file",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 700,
          "y": 0
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "main_end_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      }
    ],
    "edges": [
      {
        "id": "e-1-2",
        "source": "1",
        "target": "2",
        "type": "step",
        "data": []
      },
      {
        "id": "e-2-3",
        "source": "2",
        "target": "3",
        "type": "step",
        "data": []
      },
      {
        "id": "e-3-4",
        "source": "3",
        "target": "4",
        "type": "step",
        "data": []
      },
      {
        "id": "e-4-main_end_placeholder",
        "source": "4",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Save Cognito Forms file uploads to a Google Drive folder",
    "folder": "all",
    "description": "For each new Cognito Forms entry, FlowMattic creates a Google Drive folder named after the person and entry number, then uploads every attached file into it. HR teams, schools and agencies get applications and documents filed the moment they arrive. After import, connect Google Drive, choose the parent folder and rename Resume to your own file upload field.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}