Options

Workflow Event - edit NAV Workflow event

aceXaceX Member Posts: 166
edited 2017-02-28 in NAV Three Tier
Hi there,

I need to find Subscriber event (Customer Credit Limit is Exceeded). Does any one have a clue how to track subscriber events on one Integration (Business) event. I need to know this cause in Customer Credit Limit is Exceeded I need to add one more check - does customer has overdue balance.
If any one have experience, please let me know is this ok, or maybe it's better to have my WorkFlow Events Codeunit.

Best Regards

Best Answer

Answers

  • Options
    aceXaceX Member Posts: 166
    I've exported all objects in .txt format, just to search where is the code for Customer credit limit is exceeded, but there is no clue. So please, any idea is welcome.
  • Options
    kylehardinkylehardin Member Posts: 257
    Codeunit 312. It's called from lots of places. Sales Header, Sales Line, General Journal Line.
    Kyle Hardin - ArcherPoint
  • Options
    aceXaceX Member Posts: 166
    Hi @kylehardin ,

    In Codeunit 312 there is only call of Publisher (Integration) Event SalesHeader.OnCustomerCreditLimitExceeded. I can't to find subscriber event to this integration event. I need to see and edit the code of that subscriber event if it's possible or to follow the example for my own subscriber event.

    Regards
  • Options
    kylehardinkylehardin Member Posts: 257
    I don't think there are any subscribers to c312, at least not that I could find. So you are just after a good example of a subscriber so you can see how it works and how to make your own?
    Kyle Hardin - ArcherPoint
  • Options
    aceXaceX Member Posts: 166
    Yes @kylehardin, I'm trying to create my new Workflow Event, but, I can't find some good original NAV example. Most of the subscriber functions looks like they are working systematically not like they are programmed in NAV.
    I've have found a couple examples for creating WF Events. Mostly useful for me is:
    http://shivteja.blogspot.mk/2015/11/dynamics-nav-2016-implementing-events.html
    but in my example I need some different steps like original CustomerCreditLimitIsExceeded WF is working.

    Best Regards
  • Options
    HannesHolstHannesHolst Member Posts: 119
    Codeunit 1520, Subscriber function "RunWorkflowOnCustomerCreditLimitExceeded" ?
  • Options
    aceXaceX Member Posts: 166
    Hi there @HannesHolst,

    I've found this Subscriber event who is subscribing to [IntegrationEvent] OnCustomerCreditLimitExceeded() who is located in T36 - Sales Header. I also found the CheckAvailableCreditLimit function, where is called OnCustomerCreditLimitExceeded integration event function. There I've put the "bypass" code and it's ok. But that is not correct solution. I need to find who is the subscriber on the [IntegrationEvent] OnCustomerCreditLimitExceeded().

    Best Regards
  • Options
    aceXaceX Member Posts: 166
    Well, in this scenario, I think that will be the correct answer, cause there is no other way to see which integration event have subscriber to him self. But also, there does not exist record, where is the subscriber to the integration events who are located in the T36 - Sales Header.

    Regards @HannesHolst bj2vv501vg9a.png


Sign In or Register to comment.