# New File In Folder — Zoho WorkDrive

> Emit new event when a new file is created in a specific folder.

- Key: `zoho_workdrive-new-file-in-folder`
- Type: Trigger (Polling)
- Version: 0.2.2
- App: Zoho WorkDrive (`zoho_workdrive`) — https://pipedream.com/apps/zoho-workdrive.md
- This page (HTML): https://pipedream.com/apps/zoho-workdrive/triggers/new-file-in-folder
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/zoho_workdrive/sources/new-file-in-folder/new-file-in-folder.mjs

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `timer` | `$.interface.timer` | Yes | Pipedream will poll the Zoho WorkDrive on this schedule |
| `teamId` | `string` | Yes | The unique ID that represents a team. Options are loaded from the connected account. |
| `manuallyEnterFolderId` | `boolean` | No | If true, the folder ID can be manually entered instead of being selected from the list of folders |
| `folderType` | `string` | Yes | Whether to retrieve team folders or privatespace folders Options are loaded from the connected account. |
| `folderId` | `string` | Yes | Select the unique ID of the folder. Select a folder to view its subfolders. Options are loaded from the connected account. |
| `includeLink` | `boolean` | No | Upload attachment to your File Stash and emit temporary download link to the file. See the docs to learn more about working with files in Pipedream. |
| `dir` | `dir` | No | Dir |

## Returns

Events emitted by Zoho WorkDrive.

## Run it

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const deployed = await pd.triggers.deploy({
  id: "zoho_workdrive-new-file-in-folder",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    zoho_workdrive: { authProvisionId: "apn_xxxxxxx" },
    timer: { "intervalSeconds": 900 },
    teamId: "Team ID",
  },
  webhookUrl: "https://example.com/webhooks/zoho-workdrive",
})

console.log(deployed.id)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/triggers/deploy \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "zoho_workdrive-new-file-in-folder",
    "webhook_url": "https://example.com/webhooks/zoho-workdrive",
    "configured_props": {
      "zoho_workdrive": { "authProvisionId": "apn_xxxxxxx" },
      "timer": { "intervalSeconds": 900 },
      "teamId": "Team ID"
    }
  }'
```

**MCP**

MCP servers expose Zoho WorkDrive actions as on-demand tools.

New File In Folder is an event source, so your application deploys it with the Connect SDK or API and then either receives each event at a webhook URL or retrieves events on demand with the trigger events API.

## Event delivery

Every event is sent to the HTTP endpoint you choose when you deploy the source. Or: no webhook required — your app or agent can fetch recent events from the [trigger events API](https://pipedream.com/docs/connect/api-reference/list-trigger-events.md) instead.

---

- App: https://pipedream.com/apps/zoho-workdrive.md · All apps: https://pipedream.com/apps
