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

Subscribe
Anonymous
Not applicable

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?

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

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.

Anonymous
Not applicable

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 - Community Moderator

The response shows the field that changed, yes.

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