Re: Pulling Previous Data Value Using an API

John1
Level 2

Pulling Previous Data Value Using an API

Hello! I have some leads that were updated accidentally and I would like to revert those values to a previous one. I know that it's not something you can do since there isn't an undo function in Marketo but I know that it's possible to pull that information using an API. Does anyone have any resources on how to do it? I am new to using APIs and any help will be useful. A majority of the leads were fixed but there are still some that needs to be updated again. 

 

Is this something that I should do, definitely don't want to break anything, just want to pull information. I have some coding experience but nothing too crazy

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: Pulling Previous Data Value Using an API

You want the Get Lead Changes endpoint: https://developer.adobe.com/marketo-apis/api/mapi/#operation/getLeadChangesUsingGET

First, get a paging token (https://developer.adobe.com/marketo-apis/api/mapi/#operation/getActivitiesPagingTokenUsingGET) for the time you know the mistakes started and move forward from there.

SanfordWhiteman
Level 10 - Community Moderator

Re: Pulling Previous Data Value Using an API

@John1 please return to your thread and check responses.

John1
Level 2

Re: Pulling Previous Data Value Using an API

Thank you! I found this page and was wondering how do I go about running this line of code in Marketo? Do you have another guide that I can refer to?

SanfordWhiteman
Level 10 - Community Moderator

Re: Pulling Previous Data Value Using an API

Not sure what page you mean, but you can’t run any code “in Marketo” — you call the REST API from outside Marketo, in the language/platform of your choice.