Git Product home page Git Product logo

Comments (5)

GuidoPreite avatar GuidoPreite commented on June 11, 2024

can you post a screenshot of the request and a screenshot of the generated code?
the top clause is missing from all the generated code options or just one?
Thanks

from drb.

mgdevelop-hub avatar mgdevelop-hub commented on June 11, 2024

The top clause is missing in the Portals tab.

TopCountQueryEditor

TopCountQueryPortal

from drb.

GuidoPreite avatar GuidoPreite commented on June 11, 2024

thanks for the screenshots. In the other requests (except Xrm.WebApi) I use the odata.maxpagesize header (because $top can't be used together with $count option (documentation link: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query-data-web-api#use-top-query-option)

I am not sure if a header can be passed to a safeAjax without destroying the existing header (__RequestVerificationToken, required for the authentication).

For your specific situation I suggest to add manually the $top clause, meanwhile I will try to check how the Portals call acts with a supplied header.

Thanks for reporting the issue.

from drb.

GuidoPreite avatar GuidoPreite commented on June 11, 2024

@mgdevelop-hub quick update about this issue. Next version of DRB will contain the correct header (odata.maxpagesize) to implement the top count functionality also inside Portals. I can't give you an exact date when it will be released as I plan to fix some other parts too.

from drb.

GuidoPreite avatar GuidoPreite commented on June 11, 2024

@mgdevelop-hub I released a new version of Dataverse REST Builder (1.0.0.43) and now supports the Top Count clause for the Portals syntax.
Thanks again for reporting the issue.

from drb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.