Issues with Partner Center API

  • Thread starter Thread starter BansRic
  • Start date Start date
B

BansRic

Guest
Hello,

I am trying to use BuildSeekQuery() as shown in the code below:

IQuery customerQuery = QueryFactory.BuildIndexedQuery(pageSize: 50);
SeekBasedResourceCollection<Customer> customers = await partner.Customers.QueryAsync(customerQuery);

var nextQuery = QueryFactory.BuildSeekQuery(SeekOperation.Next,pageSize: 50 token: customers.ContinuationToken);
var customersNext = await partner.Customers.QueryAsync(nextQuery);


It is giving me an exception while running nextQuery to get customersNext. If I get the continuation token from first time querying, how can I use it to get next set of customers? I tried to use BuildSeekQuery() with diff parameters as shown below, but every time, it gives me the exception that

Exception: "Continuation Token can't be null"

although it is not null. Can someone please help me with this?

var query = QueryFactory.BuildSeekQuery(SeekOperation.First, pageSize: 50 token: customers.ContinuationToken);

Thanks.

Continue reading...
 
Back
Top