# Index newly created Pipedrive deals in PostgreSQL

Keep a reporting index of new Pipedrive deals with their stable IDs and titles. Select a PostgreSQL schema and table with external\_id as a unique text column and name as a text column. Repeated delivery updates the row for that deal ID.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=pipedrive-new-deals-to-postgresql&templateName=Index+newly+created+Pipedrive+deals+in+PostgreSQL)

**Required accounts**

- Pipedrive
- PostgreSQL

## Workflow steps

### 1. Trigger · Create Deal

**Pipedrive**. Receive Pipedrive create.deal events.

### 2. Action · Upsert the deal index row

**PostgreSQL**. Insert a row or update mapped columns when a unique key already exists. Use a stable key for repeatable delivery.

## Set up your workflow

1. **Copy the template** Open the template in FastHook to create an editable Workflow Draft.
2. **Connect your accounts** Connect your accounts for Pipedrive, PostgreSQL.
3. **Review the Workflow** Review the Steps, field mappings, routes, and provider settings.
4. **Activate** Activate the Workflow when the Draft is ready, then verify a test run.

## Questions about this template

### Does the template copy someone else's credentials?

No. FastHook creates a disconnected Draft. Connect your own Pipedrive, PostgreSQL accounts before activation.

### Can I change the Steps and mappings?

Yes. The copied Workflow is an editable Draft. Review every Step, input, mapping, and route before you activate it.

### What is copied into my workspace?

FastHook recreates the Trigger configuration, Action Steps, routes, and mappings with new IDs. Provider accounts, credentials, and secrets are never copied.

### When does the Workflow start running?

Only after you connect the required accounts, finish the configuration, and explicitly activate the Draft.

## Related integrations

- [PostgreSQL integrations](https://www.fasthook.io/apps/postgresql/integrations)
- [Pipedrive integrations](https://www.fasthook.io/apps/pipedrive/integrations)
