Hi All,
I am trying to get leads by Filter Type of createdAt or updatedAt. I want to know what filterType should I be passing? I have gone through the documentation(Get Multiple Leads by Filter Type » Marketo Developers ). I couldn't find an example based on date.
Please help me on this.
Regards
Ramana Reddy
Hi June Manley
If you want to get leads by date, you use API Get Lead Activities » Marketo Developers .
CreateAt is Activity type 12 and UpdateAt is 13.
{"id":12,"name":"New Lead","description":"New person/record is added to the lead database","attributes":[
{"name":"Created Date","dataType":"date"},
{"name":"Form Name","dataType":"string"},
{"name":"Lead Source","dataType":"string"},
{"name":"List Name","dataType":"string"},
{"name":"SFDC Type","dataType":"string"},
{"name":"Source Type","dataType":"string"}
]},
{"id":13,"name":"Change Data Value","description":"Changed attribute value for a person/record","primaryAttribute":{"name":"Attribute Name","dataType":"integer"},
"attributes":[
{"name":"New Value","dataType":"string"},
{"name":"Old Value","dataType":"string"},
{"name":"Reason","dataType":"string"},
{"name":"Source","dataType":"string"}
]},
After this you make a call Get Multiple Leads by Filter Type » Marketo Developers by filterType =id if you need any lead attributes.
Good luck!
Thank you Takehiro Masaki. Looks like a more promising approach. I will try this approach. I will mark this as answered once it is achieved.