AnsweredAssumed Answered

Wrong Data In GetActivityTypes API Response

Question asked by acf93bec4f9b21e10d0bd04bccaed09676ed41a6 on Feb 21, 2016
Latest reply on Feb 21, 2016 by Sanford Whiteman

Is anyone seeing incorrect data in the marketo rest API. For example when I call the  "Get Activity Types" method. I receive a response back which contains this record:

 

{'name': 'Delete Lead', 'description': 'Delete lead from Marketo database', 'primaryAttribute': {'name': 'Remove from CRM', 'dataType': 'boolean'}, 'id': 37}

 

However when I actually pull sample data back for this activity type (37), I get something like:

 

{'id': 18, 'primaryAttributeValue': 'nick', 'activityTypeId': 37, 'activityDate': '2016-01-25T21:57:26Z', 'leadId': 1, 'primaryAttributeValueId': 1, 'attributes': []}

 

This is very inconsistent because my code thinks that the primaryAttributeValue should be a boolean but in fact its a string, and appears to be the lead's first name.

 

I believe this issue extends beyond that of activity type 37. Has anyone seen this behavior or have an actual source of truth on this stuff?

 

Thanks!

Outcomes