none
Issues with Partner Center API RRS feed

  • Question

  • 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.


    • Edited by BansRic Thursday, January 30, 2020 10:46 PM
    • Moved by CoolDadTx Friday, January 31, 2020 3:00 PM Not a C# question
    Thursday, January 30, 2020 10:45 PM

All replies

  • This forum is for C#-specific questions only. Your question is about the usage of a third party API. Please post your question in their forum as they are the only ones that understand how their API works.

    Just taking a random guess without any knowledge of their API I'm going to guess that there are no more results so the continuation token is empty. You are never checking to see if you need to get the next set of customers or not. As such it is blowing up. But they should be able to help you with this.

    Support: https://www.yammer.com/cloudpartnercommunity/


    Michael Taylor http://www.michaeltaylorp3.net


    • Edited by CoolDadTx Friday, January 31, 2020 3:00 PM Added support link
    Friday, January 31, 2020 2:59 PM
  • I'd ask for help over here.

    https://docs.microsoft.com/answers/topics/partner-center-api.html

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Friday, January 31, 2020 3:08 PM
    Moderator