Get All Activity For A Lead | Community
Skip to main content
April 1, 2016
Question

Get All Activity For A Lead

  • April 1, 2016
  • 1 reply
  • 3605 views

For any given lead I know I can get it's Activity through the Get Lead Activities endpoint. My problem is I want to get the first ever activity recorded for that lead all the way to the last. Is there a way to do this? If I try I date set way in the past (epoch) I get the following response:

{

  "requestId": "15fe4#153d32d6653",

  "success": true,

  "nextPageToken": "5HGU7ZC75UN24BUTN4FPNOQBN35Z4CKALKKTBL5JNUADVGEJNW3A====",

  "moreResult": true

}

Would I have to go through each pageToken till I get data? Is there a way to get the date of the first activity record for a lead?

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Grégoire_Miche2
Level 10
April 1, 2016

Hi Sean,

My understanding is that you will need to export them all and filter out from the exported data.

-Greg

April 4, 2016

Hi Greg,

Is there an easy way to export all activity for a lead through the REST API?

Sean

Grégoire_Miche2
Level 10
April 4, 2016

Hi Sean,

Other than the Get Lead Activities » Marketo Developers ​endpoint, no. This endpoint will really return all the activities. Then you will be able to filter the resulting files.

-Greg