Sync Google Drive files from a function call
Recipe ToolsDocument/FileSales Enablement
What it does
When a function call is made, this automation searches Google Drive for files and folders matching the parameters passed in. Someone can invoke this from another workflow to retrieve Drive content without leaving their current process.
Who it's for
Operations teams who need to search Google Drive from within other automations.
How teams use this
Find files from another workflow
Call this function from a parent workflow to search Google Drive without building the search logic twice. The result returns to the calling workflow so it can act on the files found.
Reuse search logic across teams
Finance and Sales teams both need to find Drive files by name or date. Build this function once and call it from multiple workflows so each team uses the same search rules.
Add filters to narrow results
Extend the function to filter results by file type, owner, or modified date so callers can narrow down which files are returned. The function signature stays the same but returns only matching files.
How it works
- Receive the function call. Another workflow calls this automation with search parameters, and the function runs in real time to process the request.
- Search Google Drive for files. Search Google Drive for files and folders that match the criteria passed from the calling workflow, then return the results.