Sync Google Drive files to ServiceNow document table

Document/FileCustomer ServiceIT Service ManagementRecipe ToolsDeveloper ToolAPI Integration

What it does

When someone uploads a new file or folder to Google Drive, this automation creates a record in ServiceNow. It searches for related client records, downloads the file contents, and attaches them to the document.

Who it's for

IT teams who need to track Google Drive files in ServiceNow without manual data entry.

How teams use this

Sync Google Drive uploads to ServiceNow

Track all new files uploaded to a shared Google Drive folder by automatically creating ServiceNow records with attachments. The team sees everything in one place without switching between apps.

Link files to specific client projects

Search for client records in ServiceNow before creating the document record so files are organized by the right project. This keeps related files grouped together in ServiceNow.

Route files to different tables by type

Add a condition to check the file type or folder name and create records in different ServiceNow tables based on the category. Only PDFs go to one table while images go to another.

Notify teams when files arrive

Include a Slack notification step after the ServiceNow record is created so the team knows a new file has been logged. Add the file name and client name to the message.

How it works

  1. Detect new file or folder. Monitor Google Drive in real-time for new files or folders that someone uploads or creates.
  2. Search for related client records. Search the x_bp3g_driven_client table in ServiceNow to find matching client records for the file.
  3. Create document record. Create a new record in ServiceNow's x_bp3g_driven_document table with the file details and metadata.
  4. Download file contents. Download the file contents from Google Drive so they can be attached to the ServiceNow record.
  5. Attach file to ServiceNow. Upload the file as an attachment to the ServiceNow document record using a Rest API request.