videoAL Developmentcommunity - not Microsoftreviewed - checked by Opus

Exploring Rabbit Holes with AL Tool Graphs

AL tools call graph commands (graph extract, extract whole, export) shown in a live, exploratory session by the presenter, Eric. It covers extracting call graphs from apps to JSONL, exporting to DGML, and trying selector syntax to find callers of HTTP client methods and a specific method.

  1. 0:00 Introduction to AL Tools call graphs
  2. 0:58 Installing and accessing AL tools
  3. 2:53 AL tools capabilities and graph command
  4. 4:48 Extracting call graphs from apps
  5. 7:07 Examining extracted graph data
  6. 9:17 Exporting and filtering graph results
  7. 13:10 Running AL graph extract command
  8. 15:00 Visualizing HTTP client dependencies
  9. 16:40 Exploring method filtering syntax
  10. 18:20 Testing hashtag member filter notation
  11. 20:50 Troubleshooting selector syntax and documentation
  12. 23:20 Wrapping up AL tool graphs discussion
video Erik Hougaard · 2026-10-26Watch on YouTube

Overview

Erik Hougaard looks at a new capability in the latest version of AL tools: generating call graphs that show what calls a given piece of code and how code in one app reaches another. He installs the tools, runs the graph extract command on an app, and then extracts a whole corpus, where 28 files are compiled together.

He then exports the graph, including to DGML for visualization, and tries to scope the output with query selectors, for example to see which methods call HTTP client operations or where create folder is called. The selector syntax takes trial and error, including a hashtag member notation, and he says he is still learning it and would like more documentation.

Key points

  • AL tools in its latest version can generate call graphs to answer what calls a given piece of code, or whether code goes from non-debuggable to debuggable.
  • AL tools can be installed as a .NET global tool (optionally pre-release) and called as ‘AL’, or used as the AL tool binary in the VS Code extension bin folder.
  • The graph command queries the call graph across multiple apps, so cross-app interaction can be analyzed; a stitch command combines graphs of multiple apps.
  • Graph extract compiles the app, so it takes longer for larger apps or several apps; extract whole compiles all apps under the corpus root as one compilation.
  • Graph export writes the graph in formats including DGML; help says no selectors exports the whole graph, but the presenter did not think that actually works.
  • Query selectors scope the export to a smaller subgraph by object type and name, but the syntax did not always work as expected.
  • Filtering by method needed a hashtag member notation, and the presenter wanted more documentation on selector syntax.

Features

Feature Status At
AL call graph generation generally available (roadmap Audit AL app accessibility and debugging boundaries), demoed 0:00
AL graph command generally available (roadmap Audit AL app accessibility and debugging boundaries), demoed 4:24
AL graph extract command generally available (roadmap Audit AL app accessibility and debugging boundaries), demoed 5:25
AL graph export command generally available (roadmap Audit AL app accessibility and debugging boundaries), demoed 9:17
Graph query syntax generally available (roadmap Audit AL app accessibility and debugging boundaries), demoed 11:43
AL graph export and format to DGML generally available (roadmap Audit AL app accessibility and debugging boundaries), demoed 13:10
AL graph extract whole corpus command generally available (roadmap Audit AL app accessibility and debugging boundaries), demoed 13:51
AL Tool Graph method filtering with selectors generally available (roadmap Audit AL app accessibility and debugging boundaries), demoed 17:20
AL graph visualization using hashtag member notation generally available (roadmap Audit AL app accessibility and debugging boundaries), demoed 19:25

A status with a roadmap link comes from the Microsoft 365 roadmap feature this part of the video covers (matched by Haiku; links Opus dropped are not used); other statuses need a status word in the video itself.

AL objects mentioned

As heard in the captions. A name that matches one object page by exact type and name links to it; the others stay as named.

  • other “HTTP client” at 11:21
  • report “report” at 8:03
  • codeunit “codeunits” at 8:03
  • page “pages” at 8:03
  • codeunit “SharePoint EFQ” at 17:53
  • codeunit “SharePoint” at 18:44

Not found in BC28-30: report “report”, codeunit “codeunits”, page “pages”, codeunit “SharePoint EFQ”, codeunit “SharePoint”.

Quotes

  • 0:00 “something new in the in the latest version of AL tools is the ability to generate call graphs”
  • 0:18 “imagine you want to say I wonder what calls this and then you could actually get a nice flowchart of how the code reaches”
  • 0:33 “perhaps you want to make sure that your secrets are not getting leaked out so do we go from non-debuggable to debuggable”
  • 4:24 “there’s command called graph. Query the AL call graph across your apps”
  • 4:37 “Meaning that you can actually do this across multiple apps if you want to see how they interact”

Disclaimers in the video

  • 12:25 other: I’m I’m still kind of learning this
  • 22:30 other: None of these actually talks about how we do a notes of a kind method. Unfortunately, that None of these actually talks about how we do a notes of a kind method.
  • 23:18 other: I feel like I could do this much better if I had slightly more documentation on the how this actually works.

Presenters (as heard): Eric.