AnsweredAssumed Answered

Do I have to call REST API's "Get Lead Activities" many times to replicate SOAP API's "getLeadActivity"?

Question asked by 1912e89d8db10c34b14284dba6003b64c17b2971 on Jul 26, 2016
Latest reply on Mar 17, 2017 by Sanford Whiteman

The following on SOAP API seems to be possible, but in REST API with say 50 activity types on the system I would have to make min 5 REST calls. Is this correct or is there a better way?

 

SOAP API

"getLeadActivity" allowed you to return all activity for a lead without providing activity ids or calling many times. getLeadActivity » Marketo Developers

 

" If you want all activity types, a blank value needs to be passed."

 

REST API

"Get Lead Activities" Get Lead Activities » Marketo Developers

 

activityTypeIds

Required

Comma-separated list of activity ids, max 10.  Obtain activity ids by calling Get Activity Types.

Outcomes