8 Replies Latest reply on Oct 5, 2017 1:50 PM by Steven Vanderberg

    Activities API strange response

    Jonathan Edwards

      Hey,

       

      I am trying to replicate the Interesting Moments section through the API.

       

      I am able to get an access_token via client_id and client_secret. I am able to get a Marketo ID via SFDCLeadId. I am able to get a pagingtoken via sinceDatetime.  (used July 1 2017) Looking at Salesforce I am able to see this Lead has interesting moments since July 1 2017.

       

      Then I try to use this callout to return activity data for this lead:

       

      rest/v1/activities.json?access_token=xxxxxxxx&activityTypeIds=46&nextPageToken=yyyyy&leadIds=12953232

       

      This is the response:

       

      {

          "requestId": "aab4#xxxxxxx",

          "success": true,

          "nextPageToken": "abcdxyzxxxxxxxxxxxxxx====",

          "moreResult": true

      }

       

      Questions:

       

      Why isnt the Interesting moment that I see in Salesforce displayed here?

       

      Why is the moreResult attribute true?  Even though no results are returned... If I use the new nextPageToken in another callout as you would in a more than 300 results situation, I basically get the same response, no real results but a new nextPageToken is given and moreResult is still true.