«

»

Print this Post

NAV 2016: All Published Events

Blogging has been low lately. I have been insanely busy with providing content for the Cloud SureStep for Product Development on the DLP, which means: less free time :(.

But ..

Together with a brilliant colleague, I’m also working on an internal project: A code analyzer in PowerShell. Why in PowerShell .. well .. because in my opinion, it belongs there: I just don’t know what I want to analyze just yet 😉 and when I do know, I want to be able to create it within minutes, and put it in my test-library as some kind of automated test or part of my build server or wherever I want it .. .

The tool is something that understands NAV Code (C/AL, C/SIDE Objects, …) to be able to analyze them.. . And we’re getting quite far with it. Unfortunately, this is not something that I can put up for free .. but I can put up some “output” of the tests that I have been doing with it. Today, my first “output”:

All information on the published events of NAV2016

You might remember my blog “NAV 2016 Eventing: All published Integration and Business events“. I provided a script that showed all the Events in NAV. Well .. I wanted to know more. Much more! I wanted to know:

  • Which events are there (ok, this I already had)
  • How many times are they raised
  • Where are they declared
  • Where are they raised

So all information on the publishers that I could find.

At the end of this post, you can find the result. On top, you first have a table with two columns: “the number of times the publisher was raised”, and “the key of the element that identifies the publisher”. I think the key is readable enough ;-). You can use this key to search further in the output, for all the places it was raised. I mark the line in code of where it was raised.. .

Call for Feedback / Ideas

This was actually just an example for me to test the tool, but the result is quite interesting. If you have any feedback on this output, if you want to show it in some other way, or if you would like to know even more on publishers .. Please provide a comment and let me know.

Or even better: if you’re interested in any other kind of analysis on NAV, again, please let me know – and I might just do it, and put it online as well ;-).

I’m currently thinking of:

  • Analyzing COMMITs (how many, where, …)
  • Cyclomatic Complexity
  • Duplicate Control Ids (although this is not interesting in default NAV)

Waldo, finally show me the output

Here it is:

 

 

Disclaimer(s)

This result was compiled by a tool that is still in alpha-stage.

This result is based on a BE database, not a W1. I did not have a W1 version and don’t expect any changes between the two versions regarding “Event Publishers”.

This output is based on Cumulative Update 7.

5.00 avg. rating (98% score) - 3 votes

Permanent link to this article: http://www.waldo.be/2016/05/30/nav-2016-all-published-events/

3 comments

7 pings

Skip to comment form

  1. Johannes Sebastian

    Wow, great initiative. Does the tool have live access to a objects in text?

    What the typical NAV developer needs the most, I think, is the “where used”/references function.

    I would reeeeaally like for MS to ditch the C/SIDE and make one IDE that supports all NAV versions and with an API so Powershell tools like this can interact with the IDE. That way, we can create “plug-ins”, like “where used” and they would benefit the entire NAV-community instantly.

    1. waldo

      I can’t share too much about the tool just yet. We don’t even know how we can make it available. But it will be .. at some point .. 😉 .. .
      Totally with you on your wishlist …

  2. Jan Möller

    A simple “Where Used”-Tool for NAV:

    http://www.g-d-t.de/download.htm

  1. NAV 2016: All Published Events | Pardaan.com

    […] Bron : Waldo’s Blog Lees meer… […]

  2. NAV 2017: All Published Events » waldo's blog

    […] while ago, I posted all published events for NAV2016. Now, with the release of NAV2017, let’s do the same for this […]

  3. NAV 2017: All Published Events - Waldo's Blog - Microsoft Dynamics NAV - Dynamics NAV Users - DUG

    […] while ago, I posted all published events for NAV2016. Now, with the release of NAV2017, let’s do the same for this […]

  4. NAV 2017: All Published Events - Microsoft Dynamics NAV Community

    […] while ago, I posted all published events for NAV2016. Now, with the release of NAV2017, let’s do the same for this […]

  5. Microsoft Dynamics NAV Source Code Analysis – LineCount » waldo's blog

    […] might remember this post, where I analyzed the “event publishers” with some ingenious dll that one of my […]

  6. Microsoft Dynamics NAV Source Code Analysis – LineCount - Microsoft Dynamics NAV Community

    […] might remember this post, where I analyzed the “event publishers” with some ingenious dll that one of my […]

  7. Microsoft Dynamics NAV Source Code Analysis – LineCount - Waldo's Blog - Microsoft Dynamics NAV - Dynamics NAV Users - DUG

    […] might remember this post, where I analyzed the “event publishers” with some ingenious dll that one of my […]

Leave a Reply

%d bloggers like this: