Scheduled Export CSV for CFDB7 – Public Access CFDB7 Export CSV

Enable public access to CFDB7 CSV exports. Schedule automatic exports using a cron job.

 

How to use it?

Install and activate the "CFDB7 Public Access CSV" addon on the wp-admin dashboard.

Then go to wp-admin > contact forms (cfdb7)> public CSV> copy secret key.

Then navigate https://{yourdoamin.com}/wp-json/cfdb7/export-csv/{key}/{form-id}/{type}

 

Example: 

https://yourdoamin.com/wp-json/cfdb7/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/daily

You can download daily (All submissions before 24 hours )

Types: daily, weekly, monthly, custom, etc

 

Where can I get a Form ID?

Go to wp-admin > Contact (Contact Form 7) > Select form > Check in the browser Address bar.

Example: Form ID is 48

 

How to export submissions between two dates?

Navigate https://{yourdoamin.com}/wp-json/cfdb7/export-csv/{key}/{form-id}/custom/{from}/{to}

from = {yyyy-mm-dd}

to = {yyyy-mm-dd}

Example:

https://yourdoamin.com/wp-json/cfdb7/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/custom/2019-12-30/2020-12-30

How to export all new submissions?

Navigate https://{yourdoamin.com}/wp-json/cfdb7/export-csv/{key}/{form-id}/new

Example: https://yourdoamin.com/wp-json/cfdb7/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/new

 

Save CSV to disk (Upload folder)

Automatically export CFDB7 form entries to CSV on a schedule.

You can access it with an FTP client.

Navigate https://{yourdoamin.com}/wp-json/cfdb7/export-csv/{key}/{form-id}/{type}/save

File location: wp-content > uploads > cfdb7_csv

 

⏰ Automate with Cron Job

Want to automate your exports daily? Use a simple cron job to fetch the CSV file regularly.

Go to Cpanel > cronjobs > add new

URL: https://yourdoamin.com/wp-json/cfdb7/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/daily/save

We need to add a cron job once per day.

Example:

0 0 * * * curl --silent "https://yourdoamin.com/wp-json/cfdb7/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/daily/save" > /dev/null 2>&1

Example - Email Report

0 0 * * * curl --silent "https://yourdoamin.com/wp-json/cfdb7/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/daily/email-report" > /dev/null 2>&1

 

 

Just $69 for an unlimited installation license.

Demo: Contact Form