Coder Social home page Coder Social logo

Comments (6)

remkobrenters avatar remkobrenters commented on June 14, 2024

Can you elaborate more what you try to achieve as setting the fillables for the bulk endpoint does not directly makes sense to me as it is a readonly (GET) endpoint so technically there are no fillables.

from exact-php-client.

bigbase-nl avatar bigbase-nl commented on June 14, 2024

Of course the name fillables is indeed confusing here. We use this array to GET all fields with a "$select" from https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=BulkSalesOrderSalesOrders, since it is mandatory to provide the $select query option with a selection of one or more of the resource properties.

In this case we would want all data so we use all "fillables" in the $select, but the "SalesOrderOrderChargeLines" is than not available.

from exact-php-client.

remkobrenters avatar remkobrenters commented on June 14, 2024

Got it and also understand the issue you are dealing with. Must be something more people bump into with the mandatory selects but not sure what would be a good way to resolve this. A direction could be to add a new property for $selectable or something but this has a broader impact than just this endpoint.

from exact-php-client.

DannyvdSluijs avatar DannyvdSluijs commented on June 14, 2024

I think might be related to the inheritance that is in the BulkSalesOrder

Removing the inheritance and making BulkSalesOrder a separate entity of its own feels like the right way as this issue shows that BulkSalesOrder isn't a extension of the SalesOrder

from exact-php-client.

remkobrenters avatar remkobrenters commented on June 14, 2024

Yeah that is a start but I can imagine having a way of looking up the allowed selectable fields would be nice or do you think there is no need?

from exact-php-client.

bigbase-nl avatar bigbase-nl commented on June 14, 2024

That would be nice sometimes indeed, but those are two different subjects.
Theoretically it is true that it should be a different entity, although currently it is very convenient like this. I also assume the "SalesOrderOrderChargeLines" will be added to the bulk later (since this is now new), so maybe there is no need to split it at all...

from exact-php-client.

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.