Git Product home page Git Product logo

Comments (3)

grobyns avatar grobyns commented on May 16, 2024

Hi,

I will pass your feedback on the relevant team.

A few comments:

  • whether MS uses events or not should not matter. Any extension could do the same and you would know even less about what is going on (you can't see their code at all). When using events you have to design for multiple subscribers and make sure your code runs properly regardless of order or what others do. The handled pattern has the problem that when used properly, only the first subscriber gets to execute but no-one knows what that is. If used improperly, multiple subscribers will run their code and the results may be unpredictable or result in error (like try and post the same doc twice using different codeunits?)
  • In this particular case, if you don't want the MS subscriber to handle the processing of SalesHeaders you can turn off "Post with Job Queue" in Sales & Receivables Setup. You'll then be able to handle this yourself.

br/Gert

from alappextensions.

StanPesotskiy avatar StanPesotskiy commented on May 16, 2024

Hi @renebrummel,

You mentioned three events of COD1380 that are considered to be "internal". If you say you want to subscribe to these events, where COD1371 or COD1372 are manually bind to, then you trying to get into the internals of the mechanism supporting this whole functionality.
In order to help you we need more details about a scenario you want to implement.
The options will be:

  • we add events to COD1371/1372 so you can customize sales/purchase posting.
  • we suggest you to create a new codeunit similar to COD1371/1372 where you implement you very special handling.

Best regards,
Stan.

from alappextensions.

JesperSchulz avatar JesperSchulz commented on May 16, 2024

This issue seems to have been resolved. Closing issue.

from alappextensions.

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.