Skip to main content
January 21, 2018
Question

REST API get leadchanges.json with fields, but fields array always empty

  • January 21, 2018
  • 1 reply
  • 1441 views

hi

i use REST to get result, i use activities.json with type 12 and 13, mean "new created" and "updated".

after i got result, i query via REST for each leadId.

now i want it faster, i try leadchanges.json with fileds i need. for example

/rest/v1/activities/leadchanges.json?nextPageToken=<nextPageToken>&access_token=<access_token>&fields=firstName,lastName,department

but the fields array of the result always empty.

is anything i miss understanding?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
January 21, 2018

Are you positive that there are changes to those 3 fields in your timeframe? First Name and Last Name are rather slowly-changing dimensions, unless you have a specific test cohort in which you're making changes.

January 22, 2018

thank you.

no, I am not sure.

is that you mean, the result of fields array only shows "be changed" field?

in the other word, if the result of fields array is empty, I should skip it. right?

again, thank you for your reply.

SanfordWhiteman
Level 10
January 22, 2018

The response shows the field that changed, yes.

If you change the person's First Name, you will see the First Name field.