0 Replies Latest reply on Aug 19, 2016 12:50 PM by tyishikawa

    Content GET Request Returning Wrong Results

    tyishikawa

      Hi, I'm building a custom tile that can grab content, filtered by the type. However, it seems like the API does not return the content in the correct order when requesting multiple types of content.

       

      Here is the code I'm using:

      var reqOptions = {
          sort: "latestActivityDesc",
          fields: "subject,author.displayName,iconCss,lastActivity,published,question,type"
      };
      reqOptions.type = config.type.join(",");
      
      
      osapi.jive.corev3.contents.get(reqOptions).execute(function(res) {
          console.log(res);
      });
      

       

      Even though I expect this code to return the types specified in order of "latestActivityDesc", it is skipping some of the content, returning the 3rd, then 5th, then 6th content, for example. This is not a problem when requesting a single content type or not specifying content. I would greatly appreciate if this issue was fixed in the API. Are there any plans to fix this issue? Thank you.