Design Workflows Builder Toolbox Enterprise Automation

Before you begin

Check out our ready-made templates available when you add a step and select Templates > 3rd party templates. You can use the templates to create a set of pre-configured steps. Need a specific template? Click the Contact us button in the top right of the page and let us know.

Upload files to process and then Drive

  1. Create a step to upload a file. To do that, in your workflow add a step that’s a form.

  2. Click + Add form field and select the File upload as the form field.

  3. Create the next step to upload the file to Google Drive. Click Settings to configure the step.

  4. Enter the following details:

    KeyTypeValue
    metadatatext{"name": "{data reference to the filename of the uploaded file}", "parents":["GDRIVE_FOLDER_ID"]}
    key1file{data reference to the "First File" field from the file upload step}

    You can only upload one file from the File Upload step.

  5. If you need the Google Drive file ID of the file to be referenced in later steps, click + Create variable and create a fileid reference of the value $id.

  6. Save your changes.

Give access to the file stored in Google Drive to a user

  1. Create an Integrations > Custom integration step to upload the file.

  2. Click Settings to configure the step.

  3. Enter the following details:

    {
      "type": "user",
      "role": "reader OR writer",//select a permission profile
    "value":"EMAIL_OF_THE_GDRIVE_ACCOUNT_TO_HAVE_ACCESS"
    }
    
  4. If you need the Google Drive file ID of the file to be referenced in later steps, click + Create variable and create a fileid reference of the value $id.

  5. Save your changes.

Copy file stored in Drive

  1. Create an Integrations > Custom integration step to copy the file.

  2. Click Settings to configure the step.

  3. Enter the following details:

    {"name": "FILENAME_OF_THE_FILE_TO_COPY", 
     "parents": ["GDRIVE_FOLDER_ID"] } 
    
  4. If you need the Google Drive file ID of the file to be referenced in later steps, click + Create variable and create a fileid reference of the value $id.

  5. Save your changes.

Create a Google Drive folder

Before you begin

  1. Create an Integrations > Custom integration step.

  2. Click Settings to configure the step.

  3. Enter the following details:

    {
        "name": "FOLDER_NAME",//if the name was referenced in a previous step, use data reference. If not use real value.
        "mimeType": 'application/vnd.google-apps.folder',
         "parents": ["PARENT_FOLDER_ID"] //if the ID was referenced in a previous step, use data reference. If not use real value.
    }
    
    • Method: POST

    • URL: `https://www.googleapis.com/drive/v3/files Note that for the request to work, you need to give full access to the parent folder, such as the “Anyone with the link can edit” permission.

    • Authorization: Google Drive

    • Headers: Content-Type: application/json

    • In the Body enter the following data:

  4. If you need the Google Drive file ID of the file to be referenced in later steps, click + Create variable and create a folderid reference of the value $id.

If you need to move a file to this newly created folder, create a follow-up integration step with the following details:

Move a file to a new folder

You can move a file from one folder to another in Google Drive.

  1. In Next Matter, create an Integrations > Custom integration step.

  2. Click Settings to configure the step.

  3. Enter the following details:

The file ID and the parent folder ID can also be references to data from previous steps.

  • Authorization: Google Drive

  • Body is empty.

Replace one file with another

  1. Create a step to upload a file. To do that, in your workflow add an action step.

  2. Click + Add action and select the File upload as the action type.

  3. Create the next step to replace an old file with the uploaded one in Google Drive. Click Settings to configure the step.

  4. Enter the following details:

    KeyTypeValue
    metadatatext{"name": "{data reference to the filename of the uploaded file}"}
    key1file{data reference to the uploaded file}
  5. If you need the Google Drive file ID of the file to be referenced in later steps, click + Create variable and create a fileid reference of the value $id.

  6. Save your changes.