Skip to content
FlowHubFluxonLab
MySQL
MySQLfree

Two way sync Pipedrive and MySQL

by n8n Teamadapted from n8n official workflow galleryUpdated Aug 2026
RequiresMySQLMySQLPipedrive
Share Post Share
CDCompare DatasetsScSchedule TriggerMySQLPipedriveCreate PersonCreate ContactDTDate & TimeUpdate ContactSeSet Input2SeSet Input1Update PersonIfIF Data ChangedIfIF Updated OnSeSet12345678910111213
1/5
STEPS · 13
Runs on a schedule

This workflow automates a two way sync of customer data between Pipedrive and MySQL. It will create new records in one source if it only exists in the other. Where matching records have different data for name, phone number or email address, it will sync the most recently updated version.

Tags

n8nreference-onlymy-sqlpipedrive
Connects
mysqlMySQLPipedrive
CategoryMySQL
Triggermanual
Complexitycomplex
Nodes14
AddedNov 3, 2022

Related workflows

See all MySQL
mysql
free

Create 2 XML files: with and without XML attributes

This workflow demonstrates two ways of exporting data from SQL to XML. First, several random records are received from the MySQL database. Then, in the upper part of the workflow, the structure of an XML is defined in the Set node. After that, the ItemLists node combines all items into an array. This allows an XML node to create a simple XML file. The lower part of the workflow shows how to create an XML with attributes. It is almost identical except that a $ (dollar sign) JSON key is used to define XML attributes. Finally, both files are saved locally.

by n8n Team
mysql
free

Create a table in MySQL and insert data

Companion workflow for MySQL node docs

by amudhan
mysql
free

Purge n8n execution history located in Mysql

This workflow is useful if you have lots of tasks running daily. MySQL node (or the database used to save data shown in n8n - could be Mongo, Postgres, ... -) remove old entries from execution_entity table that contains the history of the executed workflows. If you have multiple tasks executed every minute, 1024 rows will be created every day (60 minutes x 24 hours) per every task. This will increase the table size fastly. SQL query deletes entries older than 30 days taking stoppedAt column as a reference for date calculations. You only have to setup Mysql connection properly and config cron to execute once per day in a low traffic hour, this way

by Miquel Colomer