0
votes

I'm trying to consume the Office 365 contacts api, and I got a strange response every time that I change some of the parameters...

For example, accessing the following url https://outlook.office365.com/api/v1.0/me/contacts?$top=10

I get 10 contacts, and an url to the next page https://outlook.office365.com/api/v1.0/me/contacts/?$top=10&$skip=10

Accessing the url above, I get 8 contacts and no next page url.

However, if I try to access the next page explicitly (https://outlook.office365.com/api/v1.0/me/contacts/?$top=10&$skip=20 I get 10 contacts and a next page url)

what am I doing wrong? is that a bug?

1

1 Answers

0
votes

I'd like to see if I get the same results. How many total contacts do you have in your default Contacts folder? I'm trying to figure out which behavior is wrong.

UPDATE: I tried this here and could not reproduce your results. I wonder if one of the contacts in your folder is somehow causing a processing problem. It might help to narrow down the problem if you can move the contacts that come back in your second query (?$top=10&$skip=10) to another folder and repeat your test. Do you still get the weird result?