I have been trying to access user activity using the Marketo API. But when I enable the filter for my form using the assetIds property, I get an empty result, even though the moreResult parameter is true.
I have tried sending subsequent requests using the nextPageToken from the response using a script 40+ times. Still I don't get any results even though i can see there are activities for that form via the Marketo UI.
You have to poll until moreResult
is false
, 40 pages may not be enough because you're cursoring through lots of other activities.
@Subigya, I think you'd also need to set the "activityTypeIds" (and mention the activity type ID corresponding to the "Fill out Form" activity). You can get your instance's activity types and IDs using the GET Activity Types API endpoint. The documentation says the "assetIds" parameter should only be used when a single activity type is set.