PyPardot4 icon indicating copy to clipboard operation
PyPardot4 copied to clipboard

How to import all emails and activities?

Open iritg1 opened this issue 6 years ago • 5 comments

Using PyPardot version 4 to pull emails and activities (click, open, send ect.) Looking for an example of pulling all emails and their activities.

iritg1 avatar Nov 01 '18 14:11 iritg1

Hi @iritg1 there is no API route to get all sent list emails. What I would recommend is to export your sent emails as a csv file, then read that in and query individual emails based on their Id.

mneedham91 avatar Nov 01 '18 15:11 mneedham91

Thank you. Is there a way to pull the csv file using automated process?

iritg1 avatar Nov 04 '18 09:11 iritg1

None that I am aware of, unfortunately.

mneedham91 avatar Nov 12 '18 14:11 mneedham91

Is there any difference between visitor activities when applying the 'email_only' filter to email activities?

iritg1 avatar Jan 02 '19 19:01 iritg1

We should be able to get all the emails sent by doing a Visitor Activity of type 6 - sent, 1 - click, 2 view. http://developer.pardot.com/kb/object-field-references/#visitor-activity (scroll down a bit for the secret decoder ring)

We have a brand new Visitor Activity Bulk Export method in the API http://developer.pardot.com/kb/api-version-4/export/ which I am working on writing a method for in this library (unless somebody beats me to it)

creuzerm avatar Jan 20 '20 16:01 creuzerm